Skip to content

Instantly share code, notes, and snippets.

@satyaj
Created September 6, 2019 16:45
Show Gist options
  • Save satyaj/1f730be1f063a5ac62271e4ad4545f57 to your computer and use it in GitHub Desktop.
Save satyaj/1f730be1f063a5ac62271e4ad4545f57 to your computer and use it in GitHub Desktop.
deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: '1'
creationTimestamp: '2019-09-05T12:06:28Z'
generation: 1
name: tutorial-web-app-operator
namespace: webapp
resourceVersion: '15621'
selfLink: /apis/apps/v1/namespaces/webapp/deployments/tutorial-web-app-operator
uid: 976ebf6b-cfd5-11e9-913e-02da4bfb8bc2
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
name: tutorial-web-app-operator
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
name: tutorial-web-app-operator
spec:
containers:
- command:
- tutorial-web-app-operator
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: OPERATOR_NAME
value: tutorial-web-app-operator
image: 'quay.io/integreatly/tutorial-web-app-operator:v0.0.17'
imagePullPolicy: Always
name: tutorial-web-app-operator
ports:
- containerPort: 60000
name: metrics
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: tutorial-web-app-operator
serviceAccountName: tutorial-web-app-operator
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
conditions:
- lastTransitionTime: '2019-09-05T12:07:19Z'
lastUpdateTime: '2019-09-05T12:07:19Z'
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: 'True'
type: Available
- lastTransitionTime: '2019-09-05T12:06:28Z'
lastUpdateTime: '2019-09-05T12:07:19Z'
message: >-
ReplicaSet "tutorial-web-app-operator-58d9c4684b" has successfully
progressed.
reason: NewReplicaSetAvailable
status: 'True'
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment