Skip to content

Instantly share code, notes, and snippets.

@thomasxd24
Created April 10, 2020 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasxd24/9c1cadc725be58a1874068ccd7a0514d to your computer and use it in GitHub Desktop.
Save thomasxd24/9c1cadc725be58a1874068ccd7a0514d to your computer and use it in GitHub Desktop.
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
annotations:
cni.projectcalico.org/podIP: 10.42.0.3/32
creationTimestamp: "2020-04-10T10:10:17Z"
generateName: default-http-backend-97bf46cd4-
labels:
app: default-http-backend
pod-template-hash: 97bf46cd4
name: default-http-backend-97bf46cd4-zcj9g
namespace: ingress-nginx
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: default-http-backend-97bf46cd4
uid: cc54ae9c-2304-4ccd-903d-e56f2860c05f
resourceVersion: "1343"
selfLink: /api/v1/namespaces/ingress-nginx/pods/default-http-backend-97bf46cd4-zcj9g
uid: 2dea07a9-5a6c-4c57-bbf1-928c9a76dfdc
spec:
containers:
- image: rancher/nginx-ingress-controller-defaultbackend:1.5-rancher1
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8080
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: default-http-backend
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 10m
memory: 20Mi
requests:
cpu: 10m
memory: 20Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-bz7mh
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: kcluster3.vm.local
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 60
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- name: default-token-bz7mh
secret:
defaultMode: 420
secretName: default-token-bz7mh
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:10:19Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:11:15Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:11:15Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:10:18Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://c63adb9a8e9eafe8a897790e2aa441423feeeb8d0141af9e5c7478a645c0c313
image: rancher/nginx-ingress-controller-defaultbackend:1.5-rancher1
imageID: docker-pullable://rancher/nginx-ingress-controller-defaultbackend@sha256:010b50980bbabb8b174fd3bb5c2399cd91dfca01d16362f7a916e696149676d0
lastState: {}
name: default-http-backend
ready: true
restartCount: 0
state:
running:
startedAt: "2020-04-10T10:11:14Z"
hostIP: 10.0.1.108
phase: Running
podIP: 10.42.0.3
qosClass: Guaranteed
startTime: "2020-04-10T10:10:19Z"
- apiVersion: v1
kind: Pod
metadata:
annotations:
prometheus.io/port: "10254"
prometheus.io/scrape: "true"
creationTimestamp: "2020-04-10T10:10:17Z"
generateName: nginx-ingress-controller-
labels:
app: ingress-nginx
controller-revision-hash: 675f4f74cf
pod-template-generation: "1"
name: nginx-ingress-controller-29ks8
namespace: ingress-nginx
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: DaemonSet
name: nginx-ingress-controller
uid: a43359cf-c2a4-42ee-8872-c6f952da7f3f
resourceVersion: "1354"
selfLink: /api/v1/namespaces/ingress-nginx/pods/nginx-ingress-controller-29ks8
uid: c2ac474a-c55a-44ac-97d1-cb095feec234
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchFields:
- key: metadata.name
operator: In
values:
- kcluster3.vm.local
containers:
- args:
- /nginx-ingress-controller
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
- --configmap=$(POD_NAMESPACE)/nginx-configuration
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
- --annotations-prefix=nginx.ingress.kubernetes.io
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: rancher/nginx-ingress-controller:nginx-0.25.1-rancher1
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10254
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: nginx-ingress-controller
ports:
- containerPort: 80
hostPort: 80
name: http
protocol: TCP
- containerPort: 443
hostPort: 443
name: https
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10254
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
securityContext:
capabilities:
add:
- NET_BIND_SERVICE
drop:
- ALL
runAsUser: 33
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: nginx-ingress-serviceaccount-token-5pj5j
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
hostNetwork: true
nodeName: kcluster3.vm.local
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: nginx-ingress-serviceaccount
serviceAccountName: nginx-ingress-serviceaccount
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/disk-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/memory-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/pid-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/unschedulable
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/network-unavailable
operator: Exists
volumes:
- name: nginx-ingress-serviceaccount-token-5pj5j
secret:
defaultMode: 420
secretName: nginx-ingress-serviceaccount-token-5pj5j
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:10:17Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:11:19Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:11:19Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:10:17Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://a39675ca3e75065a01f81d5780d012bdebedbb585a4fa6f4bcdc0aadb14c4841
image: rancher/nginx-ingress-controller:nginx-0.25.1-rancher1
imageID: docker-pullable://rancher/nginx-ingress-controller@sha256:b5b59d579b7e5ff3a032db0f6dfc405dd4b7e1961307dd0926574d7182e7caf6
lastState: {}
name: nginx-ingress-controller
ready: true
restartCount: 0
state:
running:
startedAt: "2020-04-10T10:11:08Z"
hostIP: 10.0.1.108
phase: Running
podIP: 10.0.1.108
qosClass: BestEffort
startTime: "2020-04-10T10:10:17Z"
- apiVersion: v1
kind: Pod
metadata:
annotations:
prometheus.io/port: "10254"
prometheus.io/scrape: "true"
creationTimestamp: "2020-04-10T10:10:17Z"
generateName: nginx-ingress-controller-
labels:
app: ingress-nginx
controller-revision-hash: 675f4f74cf
pod-template-generation: "1"
name: nginx-ingress-controller-qbhqr
namespace: ingress-nginx
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: DaemonSet
name: nginx-ingress-controller
uid: a43359cf-c2a4-42ee-8872-c6f952da7f3f
resourceVersion: "1342"
selfLink: /api/v1/namespaces/ingress-nginx/pods/nginx-ingress-controller-qbhqr
uid: dee56386-ac26-4630-bf67-babcbe569e61
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchFields:
- key: metadata.name
operator: In
values:
- kcluster1.vm.local
containers:
- args:
- /nginx-ingress-controller
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
- --configmap=$(POD_NAMESPACE)/nginx-configuration
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
- --annotations-prefix=nginx.ingress.kubernetes.io
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: rancher/nginx-ingress-controller:nginx-0.25.1-rancher1
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10254
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: nginx-ingress-controller
ports:
- containerPort: 80
hostPort: 80
name: http
protocol: TCP
- containerPort: 443
hostPort: 443
name: https
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10254
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
securityContext:
capabilities:
add:
- NET_BIND_SERVICE
drop:
- ALL
runAsUser: 33
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: nginx-ingress-serviceaccount-token-5pj5j
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
hostNetwork: true
nodeName: kcluster1.vm.local
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: nginx-ingress-serviceaccount
serviceAccountName: nginx-ingress-serviceaccount
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/disk-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/memory-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/pid-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/unschedulable
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/network-unavailable
operator: Exists
volumes:
- name: nginx-ingress-serviceaccount-token-5pj5j
secret:
defaultMode: 420
secretName: nginx-ingress-serviceaccount-token-5pj5j
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:10:18Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:11:14Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:11:14Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2020-04-10T10:10:17Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://eaf295841f7fd7db9c080619eaad97fa91ff1ed189566b0ee22d68b332dfa95a
image: rancher/nginx-ingress-controller:nginx-0.25.1-rancher1
imageID: docker-pullable://rancher/nginx-ingress-controller@sha256:b5b59d579b7e5ff3a032db0f6dfc405dd4b7e1961307dd0926574d7182e7caf6
lastState: {}
name: nginx-ingress-controller
ready: true
restartCount: 0
state:
running:
startedAt: "2020-04-10T10:11:07Z"
hostIP: 10.0.1.106
phase: Running
podIP: 10.0.1.106
qosClass: BestEffort
startTime: "2020-04-10T10:10:18Z"
- apiVersion: v1
kind: Pod
metadata:
annotations:
prometheus.io/port: "10254"
prometheus.io/scrape: "true"
creationTimestamp: "2020-04-10T10:10:17Z"
generateName: nginx-ingress-controller-
labels:
app: ingress-nginx
controller-revision-hash: 675f4f74cf
pod-template-generation: "1"
name: nginx-ingress-controller-v8qnt
namespace: ingress-nginx
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: DaemonSet
name: nginx-ingress-controller
uid: a43359cf-c2a4-42ee-8872-c6f952da7f3f
resourceVersion: "1351"
selfLink: /api/v1/namespaces/ingress-nginx/pods/nginx-ingress-controller-v8qnt
uid: dfd95cb7-f5b2-4c0f-b27a-da112ecf9312
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchFields:
- key: metadata.name
operator: In
values:
- kcluster2.vm.local
containers:
- args:
- /nginx-ingress-controller
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
- --configmap=$(POD_NAMESPACE)/nginx-configuration
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
- --annotations-prefix=nginx.ingress.kubernetes.io
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: rancher/nginx-ingress-controller:nginx-0.25.1-rancher1
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10254
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: nginx-ingress-controller
ports:
- containerPort: 80
hostPort: 80
name: http
protocol: TCP
- containerPort: 443
hostPort: 443
name: https
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10254
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
securityContext:
capabilities:
add:
- NET_BIND_SERVICE
drop:
- ALL
runAsUser: 33
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: nginx-ingress-serviceaccount-token-5pj5j
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
hostNetwork: true
nodeName: kcluster2.vm.local
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: nginx-ingress-serviceaccount
serviceAccountName: nginx-ingress-serviceaccount
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/disk-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/memory-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/pid-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/unschedulable
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/network-unavailable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment