mirror of https://github.com/k3s-io/k3s
Properly nest code blocks
Markdown code blocks are adjusted to better display on GitHubpull/6/head
parent
3823270b9e
commit
c3fbec7663
|
@ -42,44 +42,43 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
* time, t=0
|
* time, t=0
|
||||||
```console
|
```console
|
||||||
$ kubectl get ing
|
$ kubectl get ing
|
||||||
NAME RULE BACKEND ADDRESS
|
NAME RULE BACKEND ADDRESS
|
||||||
test-ingress - default-http-backend:80
|
test-ingress - default-http-backend:80
|
||||||
$ kubectl describe ing
|
$ kubectl describe ing
|
||||||
No events.
|
No events.
|
||||||
```
|
```
|
||||||
|
|
||||||
* time, t=1m
|
* time, t=1m
|
||||||
```console
|
```console
|
||||||
$ kubectl get ing
|
$ kubectl get ing
|
||||||
NAME RULE BACKEND ADDRESS
|
NAME RULE BACKEND ADDRESS
|
||||||
test-ingress - default-http-backend:80 130.211.5.27
|
test-ingress - default-http-backend:80 130.211.5.27
|
||||||
|
|
||||||
$ kubectl describe ing
|
$ kubectl describe ing
|
||||||
target-proxy: k8s-tp-default-test-ingress
|
target-proxy: k8s-tp-default-test-ingress
|
||||||
url-map: k8s-um-default-test-ingress
|
url-map: k8s-um-default-test-ingress
|
||||||
backends: {"k8s-be-32342":"UNKNOWN"}
|
backends: {"k8s-be-32342":"UNKNOWN"}
|
||||||
forwarding-rule: k8s-fw-default-test-ingress
|
forwarding-rule: k8s-fw-default-test-ingress
|
||||||
Events:
|
Events:
|
||||||
FirstSeen LastSeen Count From SubobjectPath Reason Message
|
FirstSeen LastSeen Count From SubobjectPath Reason Message
|
||||||
───────── ──────── ───── ──── ───────────── ────── ───────
|
───────── ──────── ───── ──── ───────────── ────── ───────
|
||||||
46s 46s 1 {loadbalancer-controller } Success Created loadbalancer 130.211.5.27
|
46s 46s 1 {loadbalancer-controller } Success Created loadbalancer 130.211.5.27
|
||||||
```
|
```
|
||||||
|
|
||||||
* time, t=5m
|
* time, t=5m
|
||||||
```console
|
```console
|
||||||
$ kubectl describe ing
|
$ kubectl describe ing
|
||||||
target-proxy: k8s-tp-default-test-ingress
|
target-proxy: k8s-tp-default-test-ingress
|
||||||
url-map: k8s-um-default-test-ingress
|
url-map: k8s-um-default-test-ingress
|
||||||
backends: {"k8s-be-32342":"HEALTHY"}
|
backends: {"k8s-be-32342":"HEALTHY"}
|
||||||
forwarding-rule: k8s-fw-default-test-ingress
|
forwarding-rule: k8s-fw-default-test-ingress
|
||||||
Events:
|
Events:
|
||||||
FirstSeen LastSeen Count From SubobjectPath Reason Message
|
FirstSeen LastSeen Count From SubobjectPath Reason Message
|
||||||
───────── ──────── ───── ──── ───────────── ────── ───────
|
───────── ──────── ───── ──── ───────────── ────── ───────
|
||||||
46s 46s 1 {loadbalancer-controller } Success Created loadbalancer 130.211.5.27
|
46s 46s 1 {loadbalancer-controller } Success Created loadbalancer 130.211.5.27
|
||||||
|
```
|
||||||
```
|
|
||||||
|
|
||||||
## Disabling GLBC
|
## Disabling GLBC
|
||||||
|
|
||||||
|
@ -87,20 +86,20 @@ Since GLBC runs as a cluster addon, you cannot simply delete the RC. The easiest
|
||||||
|
|
||||||
* IFF you want to tear down existing L7 loadbalancers, hit the /delete-all-and-quit endpoint on the pod:
|
* IFF you want to tear down existing L7 loadbalancers, hit the /delete-all-and-quit endpoint on the pod:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ kubectl get pods --namespace=kube-system
|
$ kubectl get pods --namespace=kube-system
|
||||||
NAME READY STATUS RESTARTS AGE
|
NAME READY STATUS RESTARTS AGE
|
||||||
l7-lb-controller-7bb21 1/1 Running 0 1h
|
l7-lb-controller-7bb21 1/1 Running 0 1h
|
||||||
$ kubectl exec l7-lb-controller-7bb21 -c l7-lb-controller curl http://localhost:8081/delete-all-and-quit --namespace=kube-system
|
$ kubectl exec l7-lb-controller-7bb21 -c l7-lb-controller curl http://localhost:8081/delete-all-and-quit --namespace=kube-system
|
||||||
$ kubectl logs l7-lb-controller-7b221 -c l7-lb-controller --follow
|
$ kubectl logs l7-lb-controller-7b221 -c l7-lb-controller --follow
|
||||||
...
|
...
|
||||||
I1007 00:30:00.322528 1 main.go:160] Handled quit, awaiting pod deletion.
|
I1007 00:30:00.322528 1 main.go:160] Handled quit, awaiting pod deletion.
|
||||||
```
|
```
|
||||||
|
|
||||||
* Nullify the RC (but don't delete it or the addon controller will "fix" it for you)
|
* Nullify the RC (but don't delete it or the addon controller will "fix" it for you)
|
||||||
```console
|
```console
|
||||||
$ kubectl scale rc l7-lb-controller --replicas=0 --namespace=kube-system
|
$ kubectl scale rc l7-lb-controller --replicas=0 --namespace=kube-system
|
||||||
```
|
```
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue