You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples in this section uses a MySQL service, which requires a client
64
-
application. If you get a string of characters with the `Got packets out of order`
65
-
message, you are connected to the service.
66
-
+
67
-
If you have a MySQL client, log in with the standard CLI command:
57
+
58
+
.. Use cURL to check that the host responds to a GET request:
68
59
+
69
60
[source,terminal]
70
61
----
71
-
$ mysql -h 172.30.131.89 -u admin -p
62
+
$ curl --head nodejs-ex-myproject.example.com
72
63
----
73
64
+
74
65
.Example output
75
66
[source,terminal]
76
67
----
77
-
Enter password:
78
-
Welcome to the MariaDB monitor. Commands end with ; or \g.
79
-
80
-
MySQL [(none)]>
68
+
HTTP/1.1 200 OK
69
+
...
81
70
----
71
+
82
72
endif::nodeport[]
83
73
ifdef::nodeport[]
84
74
. To expose a node port for the application, enter the following command. {product-title} automatically selects an available port in the `30000-32767` range.
85
75
+
86
76
[source,terminal]
87
77
----
88
-
$ oc expose dc mysql-80-rhel7 --type=NodePort --name=mysql-ingress
78
+
$ oc expose dc nodejs-ex --type=NodePort --name=nodejs-ex-ingress
89
79
----
90
80
91
81
. Optional: To confirm the service is available with a node port exposed, enter the following command:
0 commit comments