@@ -47,7 +47,7 @@ Before starting, make sure you have the following:
47
47
### Set up load balancer
48
48
49
49
``` shell
50
- $ k get all -n metallb-system
50
+ $ kubectl get all -n metallb-system
51
51
NAME READY STATUS RESTARTS AGE
52
52
pod/controller-57b4fdc957-56wv8 1/1 Running 0 22m
53
53
pod/speaker-c7sgk 1/1 Running 0 22m
@@ -71,13 +71,13 @@ replicaset.apps/controller-57b4fdc957 1 1 1 22m
71
71
```
72
72
73
73
``` shell
74
- $ k get ipaddresspools -n metallb-system
74
+ $ kubectl get ipaddresspools -n metallb-system
75
75
NAME AUTO ASSIGN AVOID BUGGY IPS ADDRESSES
76
76
cfe-pool true false [" 10.6.115.251-10.6.115.254" ]
77
77
```
78
78
79
79
``` shell
80
- $ k get l2advertisements -n metallb-system
80
+ $ kubectl get l2advertisements -n metallb-system
81
81
NAME IPADDRESSPOOLS IPADDRESSPOOL SELECTORS INTERFACES
82
82
cfe-l2advert [" cfe-pool" ]
83
83
```
@@ -139,7 +139,7 @@ If TLS is enabled for the Ingress, a Secret containing the certificate and key m
139
139
```
140
140
141
141
``` shell
142
- guoping@guoping-vm ~ /CFE/POC/ingress-nginx $ k get all -n ingress-nginx
142
+ $ kubectl get all -n ingress-nginx
143
143
NAME READY STATUS RESTARTS AGE
144
144
pod/ingress-nginx-controller-548768956f-8bz2q 1/1 Running 0 15m
145
145
@@ -159,7 +159,7 @@ The service *ingress-nginx-controller* gets deployed as the service type of *
159
159
### Install cert-manager
160
160
161
161
``` shell
162
- $ k get all -n cert-manager
162
+ $ kubectl get all -n cert-manager
163
163
NAME READY STATUS RESTARTS AGE
164
164
pod/cert-manager-59fbb6655d-h7sqb 1/1 Running 0 18s
165
165
pod/cert-manager-cainjector-69548575fb-7fqd2 1/1 Running 0 18s
@@ -181,7 +181,7 @@ replicaset.apps/cert-manager-webhook-57b78f476d 1 1 1
181
181
```
182
182
183
183
``` shell
184
- $ k create ns nginx-apps
184
+ $ kubectl create ns nginx-apps
185
185
namespace/nginx-apps created
186
186
187
187
$ cat issuer-selfsigned.yaml
@@ -192,10 +192,10 @@ metadata:
192
192
spec:
193
193
selfSigned: {}
194
194
195
- $ k apply -f issuer-selfsigned.yaml -n nginx-apps
195
+ $ kubectl apply -f issuer-selfsigned.yaml -n nginx-apps
196
196
issuer.cert-manager.io/cfe-selfsigned-issuer created
197
197
198
- $ k get issuer -n nginx-apps
198
+ $ kubectl get issuer -n nginx-apps
199
199
NAME READY AGE
200
200
cfe-selfsigned-issuer True 115s
201
201
```
@@ -225,14 +225,14 @@ spec:
225
225
```
226
226
227
227
``` shell
228
- $ k apply -f certificate.yaml -n nginx-apps
228
+ $ kubectl apply -f certificate.yaml -n nginx-apps
229
229
certificate.cert-manager.io/cfe-selfsigned-tls created
230
230
231
- $ k get certificate -n nginx-apps
231
+ $ kubectl get certificate -n nginx-apps
232
232
NAME READY SECRET AGE
233
233
cfe-selfsigned-tls True cfe-tls-key-pair 17s
234
234
235
- $ k get secrets -n nginx-apps cfe-tls-key-pair
235
+ $ kubectl get secrets -n nginx-apps cfe-tls-key-pair
236
236
NAME TYPE DATA AGE
237
237
cfe-tls-key-pair kubernetes.io/tls 3 2m25s
238
238
```
@@ -253,19 +253,19 @@ ingress-demo/
253
253
254
254
``` shell
255
255
$ 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
257
257
service/nginx-main created
258
258
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
260
260
service/nginx-green created
261
261
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
263
263
service/nginx-blue created
264
264
deployment.apps/nginx-blue created
265
265
```
266
266
267
267
``` shell
268
- $ k get all -n nginx-apps
268
+ $ kubectl get all -n nginx-apps
269
269
NAME READY STATUS RESTARTS AGE
270
270
pod/nginx-blue-78647f4c4b-z8wq9 1/1 Running 0 10s
271
271
pod/nginx-green-8956bbd9f-zz7hk 1/1 Running 0 22s
@@ -339,12 +339,12 @@ spec:
339
339
```
340
340
341
341
``` 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
343
343
ingress.networking.k8s.io/ingress-host-based-selfsigned created
344
- $ k get ingress -n nginx-apps
344
+ $ kubectl get ingress -n nginx-apps
345
345
NAME CLASS HOSTS ADDRESS PORTS AGE
346
346
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
348
348
Name: ingress-host-based-selfsigned
349
349
Labels: < none>
350
350
Namespace: nginx-apps
0 commit comments