Skip to content

Commit d69194f

Browse files
committed
Update Blog “exposing-an-application-using-ingress-and-tls-termination-on-kubernetes-in-hpe-greenlake-for-private-cloud-enterprise”
1 parent 6ad2bdc commit d69194f

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

content/blog/exposing-an-application-using-ingress-and-tls-termination-on-kubernetes-in-hpe-greenlake-for-private-cloud-enterprise.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Before starting, make sure you have the following:
4747
### Set up load balancer
4848

4949
```shell
50-
$ k get all -n metallb-system
50+
$ kubectl get all -n metallb-system
5151
NAME READY STATUS RESTARTS AGE
5252
pod/controller-57b4fdc957-56wv8 1/1 Running 0 22m
5353
pod/speaker-c7sgk 1/1 Running 0 22m
@@ -71,13 +71,13 @@ replicaset.apps/controller-57b4fdc957 1 1 1 22m
7171
```
7272

7373
```shell
74-
$ k get ipaddresspools -n metallb-system
74+
$ kubectl get ipaddresspools -n metallb-system
7575
NAME AUTO ASSIGN AVOID BUGGY IPS ADDRESSES
7676
cfe-pool true false ["10.6.115.251-10.6.115.254"]
7777
```
7878

7979
```shell
80-
$ k get l2advertisements -n metallb-system
80+
$ kubectl get l2advertisements -n metallb-system
8181
NAME IPADDRESSPOOLS IPADDRESSPOOL SELECTORS INTERFACES
8282
cfe-l2advert ["cfe-pool"]
8383
```
@@ -139,7 +139,7 @@ If TLS is enabled for the Ingress, a Secret containing the certificate and key m
139139
```
140140

141141
```shell
142-
guoping@guoping-vm ~/CFE/POC/ingress-nginx $ k get all -n ingress-nginx
142+
$ kubectl get all -n ingress-nginx
143143
NAME READY STATUS RESTARTS AGE
144144
pod/ingress-nginx-controller-548768956f-8bz2q 1/1 Running 0 15m
145145

@@ -159,7 +159,7 @@ The service *ingress-nginx-controller* gets deployed as the service type of *
159159
### Install cert-manager
160160

161161
```shell
162-
$ k get all -n cert-manager
162+
$ kubectl get all -n cert-manager
163163
NAME READY STATUS RESTARTS AGE
164164
pod/cert-manager-59fbb6655d-h7sqb 1/1 Running 0 18s
165165
pod/cert-manager-cainjector-69548575fb-7fqd2 1/1 Running 0 18s
@@ -181,7 +181,7 @@ replicaset.apps/cert-manager-webhook-57b78f476d 1 1 1
181181
```
182182

183183
```shell
184-
$ k create ns nginx-apps
184+
$ kubectl create ns nginx-apps
185185
namespace/nginx-apps created
186186

187187
$ cat issuer-selfsigned.yaml
@@ -192,10 +192,10 @@ metadata:
192192
spec:
193193
selfSigned: {}
194194

195-
$ k apply -f issuer-selfsigned.yaml -n nginx-apps
195+
$ kubectl apply -f issuer-selfsigned.yaml -n nginx-apps
196196
issuer.cert-manager.io/cfe-selfsigned-issuer created
197197

198-
$ k get issuer -n nginx-apps
198+
$ kubectl get issuer -n nginx-apps
199199
NAME READY AGE
200200
cfe-selfsigned-issuer True 115s
201201
```
@@ -225,14 +225,14 @@ spec:
225225
```
226226

227227
```shell
228-
$ k apply -f certificate.yaml -n nginx-apps
228+
$ kubectl apply -f certificate.yaml -n nginx-apps
229229
certificate.cert-manager.io/cfe-selfsigned-tls created
230230

231-
$ k get certificate -n nginx-apps
231+
$ kubectl get certificate -n nginx-apps
232232
NAME READY SECRET AGE
233233
cfe-selfsigned-tls True cfe-tls-key-pair 17s
234234

235-
$ k get secrets -n nginx-apps cfe-tls-key-pair
235+
$ kubectl get secrets -n nginx-apps cfe-tls-key-pair
236236
NAME TYPE DATA AGE
237237
cfe-tls-key-pair kubernetes.io/tls 3 2m25s
238238
```
@@ -253,19 +253,19 @@ ingress-demo/
253253

254254
```shell
255255
$ cd ingress-demo/
256-
$ k apply -f apps/nginx-main.yaml -n nginx-apps
256+
$ kubectl apply -f apps/nginx-main.yaml -n nginx-apps
257257
service/nginx-main created
258258
deployment.apps/nginx-main created
259-
$ k apply -f apps/nginx-green.yaml -n nginx-apps
259+
$ kubectl apply -f apps/nginx-green.yaml -n nginx-apps
260260
service/nginx-green created
261261
deployment.apps/nginx-green created
262-
$ k apply -f apps/nginx-blue.yaml -n nginx-apps
262+
$ kubectl apply -f apps/nginx-blue.yaml -n nginx-apps
263263
service/nginx-blue created
264264
deployment.apps/nginx-blue created
265265
```
266266

267267
```shell
268-
$ k get all -n nginx-apps
268+
$ kubectl get all -n nginx-apps
269269
NAME READY STATUS RESTARTS AGE
270270
pod/nginx-blue-78647f4c4b-z8wq9 1/1 Running 0 10s
271271
pod/nginx-green-8956bbd9f-zz7hk 1/1 Running 0 22s
@@ -339,12 +339,12 @@ spec:
339339
```
340340

341341
```shell
342-
$ k apply -f ingress-host-based-selfsigned.yaml -n nginx-apps
342+
$ kubectl apply -f ingress-host-based-selfsigned.yaml -n nginx-apps
343343
ingress.networking.k8s.io/ingress-host-based-selfsigned created
344-
$ k get ingress -n nginx-apps
344+
$ kubectl get ingress -n nginx-apps
345345
NAME CLASS HOSTS ADDRESS PORTS AGE
346346
ingress-host-based-selfsigned nginx nginx.example.com,blue.nginx.example.com,green.nginx.example.com 80, 443 9s
347-
$ k describe ingress -n nginx-apps
347+
$ kubectl describe ingress -n nginx-apps
348348
Name: ingress-host-based-selfsigned
349349
Labels: <none>
350350
Namespace: nginx-apps

0 commit comments

Comments
 (0)