Skip to content

Instantly share code, notes, and snippets.

@CheyiLin
Created November 10, 2017 03:41
Show Gist options
  • Save CheyiLin/c8189d94eeabcf2abb14be01ea358a66 to your computer and use it in GitHub Desktop.
Save CheyiLin/c8189d94eeabcf2abb14be01ea358a66 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "18"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{"kubernetes.io/change-cause":"kubectl apply --filename=deploy\\system\\ingress\\nginx-ingress-controller.yaml --record=true"},"name":"nginx-ingress-controller","namespace":"nginx-ingress"},"spec":{"replicas":4,"revisionHistoryLimit":2,"selector":{"matchLabels":{"k8s-app":"nginx-ingress-lb"}},"strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0},"type":"RollingUpdate"},"template":{"metadata":{"annotations":{"prometheus.io/port":"10254","prometheus.io/scrape":"true"},"labels":{"k8s-app":"nginx-ingress-lb"}},"spec":{"containers":[{"args":["/nginx-ingress-controller","--default-backend-service=$(POD_NAMESPACE)/default-http-backend","--configmap=$(POD_NAMESPACE)/nginx-config","--tcp-services-configmap=$(POD_NAMESPACE)/nginx-tcp-ingress-configmap","--udp-services-configmap=$(POD_NAMESPACE)/nginx-udp-ingress-configmap"],"env":[{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}},{"name":"POD_NAMESPACE","valueFrom":{"fieldRef":{"fieldPath":"metadata.namespace"}}}],"image":"quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0-beta.17","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,"name":"http"},{"containerPort":443,"name":"https"}],"readinessProbe":{"failureThreshold":3,"httpGet":{"path":"/healthz","port":10254,"scheme":"HTTP"},"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}}],"serviceAccountName":"nginx-ingress-serviceaccount"}}}}
kubernetes.io/change-cause: kubectl apply --filename=deploy\system\ingress\nginx-ingress-controller.yaml
--record=true
creationTimestamp: 2017-06-29T11:45:17Z
generation: 21
labels:
k8s-app: nginx-ingress-lb
name: nginx-ingress-controller
namespace: nginx-ingress
resourceVersion: "21380778"
selfLink: /apis/extensions/v1beta1/namespaces/nginx-ingress/deployments/nginx-ingress-controller
uid: 6c41dd0b-5cc0-11e7-9ba3-0050569a1ab8
spec:
replicas: 4
revisionHistoryLimit: 2
selector:
matchLabels:
k8s-app: nginx-ingress-lb
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
annotations:
prometheus.io/port: "10254"
prometheus.io/scrape: "true"
creationTimestamp: null
labels:
k8s-app: nginx-ingress-lb
spec:
containers:
- args:
- /nginx-ingress-controller
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
- --configmap=$(POD_NAMESPACE)/nginx-config
- --tcp-services-configmap=$(POD_NAMESPACE)/nginx-tcp-ingress-configmap
- --udp-services-configmap=$(POD_NAMESPACE)/nginx-udp-ingress-configmap
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0-beta.17
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
name: http
protocol: TCP
- containerPort: 443
name: https
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
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: nginx-ingress-serviceaccount
serviceAccountName: nginx-ingress-serviceaccount
terminationGracePeriodSeconds: 30
status:
availableReplicas: 4
conditions:
- lastTransitionTime: 2017-11-09T03:55:00Z
lastUpdateTime: 2017-11-09T03:55:00Z
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
observedGeneration: 21
readyReplicas: 4
replicas: 5
unavailableReplicas: 1
updatedReplicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment