Created
December 19, 2017 00:59
-
-
Save gyliu513/a6e1035be0305a1af66a3f24843bcc7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ingress controller | |
``` | |
[ubuntu@perfbriggs3 fs]$ kc -n kube-system get ds nginx-ingress-lb-ppc64le -oyaml | |
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
annotations: | |
kubectl.kubernetes.io/last-applied-configuration: | | |
{"apiVersion":"extensions/v1beta1","kind":"DaemonSet","metadata":{"annotations":{},"name":"nginx-ingress-lb-ppc64le","namespace":"kube-system"},"spec":{"minReadySeconds":0,"template":{"metadata":{"labels":{"arch":"ppc64le","name":"nginx-ingress-lb"}},"spec":{"containers":[{"args":["/nginx-ingress-controller","--default-backend-service=$(POD_NAMESPACE)/default-http-backend","--configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf"],"env":[{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}},{"name":"POD_NAMESPACE","valueFrom":{"fieldRef":{"fieldPath":"metadata.namespace"}}}],"image":"ibmcom/nginx-ingress-controller-ppc64le:0.9.0-beta.13","imagePullPolicy":"IfNotPresent","livenessProbe":{"httpGet":{"path":"/healthz","port":10254,"scheme":"HTTP"},"initialDelaySeconds":10,"timeoutSeconds":1},"name":"nginx-ingress-lb-ppc64le","ports":[{"containerPort":80},{"containerPort":443}],"readinessProbe":{"httpGet":{"path":"/healthz","port":10254,"scheme":"HTTP"}}}],"hostNetwork":true,"nodeSelector":{"beta.kubernetes.io/arch":"ppc64le","proxy":"true"},"terminationGracePeriodSeconds":60,"tolerations":[{"effect":"NoSchedule","key":"dedicated","operator":"Exists"},{"key":"CriticalAddonsOnly","operator":"Exists"}]}},"updateStrategy":{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}}} | |
creationTimestamp: 2017-12-17T22:49:14Z | |
generation: 4 | |
labels: | |
arch: ppc64le | |
name: nginx-ingress-lb | |
name: nginx-ingress-lb-ppc64le | |
namespace: kube-system | |
resourceVersion: "139323" | |
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/daemonsets/nginx-ingress-lb-ppc64le | |
uid: 81239066-e37c-11e7-802c-0cc47a89ece8 | |
spec: | |
revisionHistoryLimit: 10 | |
selector: | |
matchLabels: | |
arch: ppc64le | |
name: nginx-ingress-lb | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
arch: ppc64le | |
name: nginx-ingress-lb | |
spec: | |
containers: | |
- command: | |
- /bin/sh | |
- -c | |
- | | |
while true; do | |
sysctl -w net.core.somaxconn=32768 | |
sysctl -w net.ipv4.ip_local_port_range='1024 65535' | |
sysctl -w fs.file-max=1608170 | |
sleep 10 | |
done | |
image: alpine:latest | |
imagePullPolicy: IfNotPresent | |
name: sysctl-buddy | |
resources: {} | |
securityContext: | |
privileged: true | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
- args: | |
- /nginx-ingress-controller | |
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend | |
- --configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf | |
- --v=10 | |
env: | |
- name: POD_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.name | |
- name: POD_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
image: ibmcom/nginx-ingress-controller-ppc64le:0.9.0-beta.13 | |
imagePullPolicy: IfNotPresent | |
livenessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /healthz | |
port: 10254 | |
scheme: HTTP | |
initialDelaySeconds: 10 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 1 | |
name: nginx-ingress-lb-ppc64le | |
ports: | |
- containerPort: 80 | |
hostPort: 80 | |
protocol: TCP | |
- containerPort: 443 | |
hostPort: 443 | |
protocol: TCP | |
readinessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /healthz | |
port: 10254 | |
scheme: HTTP | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 1 | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
dnsPolicy: ClusterFirst | |
hostNetwork: true | |
nodeSelector: | |
beta.kubernetes.io/arch: ppc64le | |
proxy: "true" | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
terminationGracePeriodSeconds: 60 | |
tolerations: | |
- effect: NoSchedule | |
key: dedicated | |
operator: Exists | |
- key: CriticalAddonsOnly | |
operator: Exists | |
templateGeneration: 4 | |
updateStrategy: | |
rollingUpdate: | |
maxUnavailable: 1 | |
type: RollingUpdate | |
status: | |
currentNumberScheduled: 1 | |
desiredNumberScheduled: 1 | |
numberMisscheduled: 0 | |
numberReady: 0 | |
numberUnavailable: 1 | |
observedGeneration: 4 | |
updatedNumberScheduled: 1 | |
``` | |
logs | |
``` | |
I1219 00:15:08.098496 7 launch.go:109] &{NGINX 0.9.0-beta.12 git-cda42f9 https://github.com/kubernetes/ingress} | |
2 I1219 00:15:08.098564 7 launch.go:112] Watching for ingress class: nginx | |
3 I1219 00:15:08.098779 7 launch.go:278] Creating API client for https://10.0.0.1:443 | |
4 I1219 00:15:08.103424 7 round_trippers.go:386] curl -k -v -XGET -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3Bh Y2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJkZWZhdWx0LXRva2VuLTV6aGRqIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImRlZmF1bHQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW 50L3NlcnZpY2UtYWNjb3VudC51aWQiOiJiOTY5Njc2NC1lMzdiLTExZTctODAyYy0wY2M0N2E4OWVjZTgiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6a3ViZS1zeXN0ZW06ZGVmYXVsdCJ9.PKjN5v-TscBKutzUYTAc5Ezn1UTb2tCGGAbVjYhIiP9toaJP5Zu4yUHesthQDyk9NMW1Bh9V1JBy1Os efl1HHFlnHsa15ZVk3Ztd5EuNc-K6MsBuJo4w5Nz0LVSPAhkmiddAI5I00dGXlCwGP9NthvoBWcVrb0ouHZUKCoPVS5GL4fjMdEfTgRCAu_osMaB5EWVDjbOzVG3iHynWyZuKRe7D7RlSZHKhwfrrgkek5j2hRntdjLqqlOPB_BUDqYI_7QjOZ5aBKf2wOg0qiCrXP6sqH6KuNwS5N7lEF4m2XQ3k8wAnUP2bX 8msAOuGNnayh1u19Og_0l57wNaErqoAAw" -H "User-Agent: nginx-ingress-controller/v0.0.0 (linux/ppc64le) kubernetes/$Format" -H "Accept: application/vnd.kubernetes.protobuf, */*" https://10.0.0.1:443/version | |
5 I1219 00:15:08.118092 7 round_trippers.go:405] GET https://10.0.0.1:443/version 200 OK in 14 milliseconds | |
6 I1219 00:15:08.118142 7 round_trippers.go:411] Response Headers: | |
7 I1219 00:15:08.118154 7 round_trippers.go:414] Content-Type: application/json | |
8 I1219 00:15:08.118167 7 round_trippers.go:414] Content-Length: 269 | |
9 I1219 00:15:08.118180 7 round_trippers.go:414] Date: Tue, 19 Dec 2017 00:15:08 GMT | |
10 I1219 00:15:08.118217 7 request.go:811] Response Body: { | |
11 "major": "1", | |
12 "minor": "8", | |
13 "gitVersion": "v1.8.3+icp+ee", | |
14 "gitCommit": "5bf8ff102c9cd883604f1902d01745c73b44fe6c", | |
15 "gitTreeState": "clean", | |
16 "buildDate": "2017-12-12T23:16:45Z", | |
17 "goVersion": "go1.8.3", | |
18 "compiler": "gc", | |
19 "platform": "linux/ppc64le" | |
20 } | |
21 I1219 00:15:08.118355 7 launch.go:291] Running in Kubernetes Cluster version v1.8 (v1.8.3+icp+ee) - git (clean) commit 5bf8ff102c9cd883604f1902d01745c73b44fe6c - platform linux/ppc64le | |
22 I1219 00:15:08.118495 7 round_trippers.go:386] curl -k -v -XGET -H "Accept: application/vnd.kubernetes.protobuf, */*" -H "User-Agent: nginx-ingress-controller/v0.0.0 (linux/ppc64le) kubernetes/$Format" -H "Authorization: Be arer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJkZWZhdWx0 LXRva2VuLTV6aGRqIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImRlZmF1bHQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiJiOTY5Njc2NC1lMzdiLTExZTctODAyYy0wY2M0N2E4OWVjZTgiLCJzdWIiOi JzeXN0ZW06c2VydmljZWFjY291bnQ6a3ViZS1zeXN0ZW06ZGVmYXVsdCJ9.PKjN5v-TscBKutzUYTAc5Ezn1UTb2tCGGAbVjYhIiP9toaJP5Zu4yUHesthQDyk9NMW1Bh9V1JBy1Osefl1HHFlnHsa15ZVk3Ztd5EuNc-K6MsBuJo4w5Nz0LVSPAhkmiddAI5I00dGXlCwGP9NthvoBWcVrb0ouHZUKCoPVS5G L4fjMdEfTgRCAu_osMaB5EWVDjbOzVG3iHynWyZuKRe7D7RlSZHKhwfrrgkek5j2hRntdjLqqlOPB_BUDqYI_7QjOZ5aBKf2wOg0qiCrXP6sqH6KuNwS5N7lEF4m2XQ3k8wAnUP2bX8msAOuGNnayh1u19Og_0l57wNaErqoAAw" https://10.0.0.1:443/api/v1/namespaces/kube-system/servic es/default-http-backend | |
23 I1219 00:15:08.120760 7 round_trippers.go:405] GET https://10.0.0.1:443/api/v1/namespaces/kube-system/services/default-http-backend 200 OK in 2 milliseconds | |
24 I1219 00:15:08.120782 7 round_trippers.go:411] Response Headers: | |
25 I1219 00:15:08.120802 7 round_trippers.go:414] Content-Length: 588 | |
26 I1219 00:15:08.120822 7 round_trippers.go:414] Date: Tue, 19 Dec 2017 00:15:08 GMT | |
27 I1219 00:15:08.120840 7 round_trippers.go:414] Content-Type: application/vnd.kubernetes.protobuf | |
28 I1219 00:15:08.121041 7 request.go:809] Response Body: | |
29 00000000 6b 38 73 00 0a 0d 0a 02 76 31 12 07 53 65 72 76 |k8s.....v1..Serv| | |
30 00000010 69 63 65 12 b2 04 0a cf 03 0a 14 64 65 66 61 75 |ice........defau| | |
31 00000020 6c 74 2d 68 74 74 70 2d 62 61 63 6b 65 6e 64 12 |lt-http-backend.| | |
32 00000030 00 1a 0b 6b 75 62 65 2d 73 79 73 74 65 6d 22 3c |...kube-system"<| | |
33 00000040 2f 61 70 69 2f 76 31 2f 6e 61 6d 65 73 70 61 63 |/api/v1/namespac| | |
34 00000050 65 73 2f 6b 75 62 65 2d 73 79 73 74 65 6d 2f 73 |es/kube-system/s| | |
35 00000060 65 72 76 69 63 65 73 2f 64 65 66 61 75 6c 74 2d |ervices/default-| | |
36 00000070 68 74 74 70 2d 62 61 63 6b 65 6e 64 2a 24 38 31 |http-backend*$81| | |
37 00000080 32 61 64 36 31 64 2d 65 33 37 63 2d 31 31 65 37 |2ad61d-e37c-11e7| | |
38 00000090 2d 38 30 32 63 2d 30 63 63 34 37 61 38 39 65 63 |-802c-0cc47a89ec| | |
39 000000a0 65 38 32 04 31 34 35 35 38 00 42 08 08 ea e8 db |e82.14558.B.....| | |
40 000000b0 d1 05 10 00 62 af 02 0a 30 6b 75 62 65 63 74 6c |....b...0kubectl| | |
41 000000c0 2e 6b 75 62 65 72 6e 65 74 65 73 2e 69 6f 2f 6c |.kubernetes.io/l| | |
42 000000d0 61 73 74 2d 61 70 70 6c 69 65 64 2d 63 6f 6e 66 |ast-applied-conf| | |
43 000000e0 69 67 75 72 61 74 69 6f 6e 12 fa 01 7b 22 61 70 |iguration...{"ap| | |
44 000000f0 69 56 65 72 73 69 6f 6e 22 3a 22 76 31 22 2c 22 |iVersion":"v1","| | |
45 00000100 6b 69 6e 64 22 3a 22 53 65 72 76 69 63 65 22 2c |kind":"Service",| | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment