Skip to content

Instantly share code, notes, and snippets.

@ipochi
Created April 8, 2019 16:26
Show Gist options
  • Select an option

  • Save ipochi/aeb4efbc013e064b1f55d1a9a05c28fc to your computer and use it in GitHub Desktop.

Select an option

Save ipochi/aeb4efbc013e064b1f55d1a9a05c28fc to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"apps/v1beta1","kind":"Deployment","metadata":{"annotations":{},"name":"velero","namespace":"velero"},"spec":{"replicas":1,"template":{"metadata":{"annotations":{"prometheus.io/path":"/metrics","prometheus.io/port":"8085","prometheus.io/scrape":"true"},"labels":{"component":"velero"}},"spec":{"containers":[{"args":["server","--default-volume-snapshot-locations=aws:us-east-1"],"command":["/velero"],"env":[{"name":"AWS_SHARED_CREDENTIALS_FILE","value":"/credentials/cloud"},{"name":"VELERO_SCRATCH_DIR","value":"/scratch"}],"envFrom":[{"secretRef":{"name":"cloud-credentials"}}],"image":"gcr.io/heptio-images/velero:v0.11.0","name":"velero","ports":[{"containerPort":8085,"name":"metrics"}],"volumeMounts":[{"mountPath":"/credentials","name":"cloud-credentials"},{"mountPath":"/plugins","name":"plugins"},{"mountPath":"/scratch","name":"scratch"}]}],"nodeSelector":{"beta.kubernetes.io/os":"linux"},"restartPolicy":"Always","serviceAccountName":"velero","volumes":[{"name":"cloud-credentials","secret":{"secretName":"cloud-credentials"}},{"emptyDir":{},"name":"plugins"},{"emptyDir":{},"name":"scratch"}]}}}}
creationTimestamp: "2019-04-06T19:58:46Z"
generation: 1
labels:
component: velero
name: velero
namespace: velero
resourceVersion: "4690333"
selfLink: /apis/extensions/v1beta1/namespaces/velero/deployments/velero
uid: 632f0133-58a6-11e9-9c62-5e522f2a7040
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
component: velero
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "8085"
prometheus.io/scrape: "true"
creationTimestamp: null
labels:
component: velero
spec:
containers:
- args:
- server
- --default-volume-snapshot-locations=aws:us-east-1
command:
- /velero
env:
- name: AWS_SHARED_CREDENTIALS_FILE
value: /credentials/cloud
- name: VELERO_SCRATCH_DIR
value: /scratch
envFrom:
- secretRef:
name: cloud-credentials
image: gcr.io/heptio-images/velero:v0.11.0
imagePullPolicy: IfNotPresent
name: velero
ports:
- containerPort: 8085
name: metrics
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /credentials
name: cloud-credentials
- mountPath: /plugins
name: plugins
- mountPath: /scratch
name: scratch
dnsPolicy: ClusterFirst
nodeSelector:
beta.kubernetes.io/os: linux
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: velero
serviceAccountName: velero
terminationGracePeriodSeconds: 30
volumes:
- name: cloud-credentials
secret:
defaultMode: 420
secretName: cloud-credentials
- emptyDir: {}
name: plugins
- emptyDir: {}
name: scratch
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2019-04-06T19:58:46Z"
lastUpdateTime: "2019-04-06T19:58:50Z"
message: ReplicaSet "velero-854cbc89c4" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
- lastTransitionTime: "2019-04-08T16:20:35Z"
lastUpdateTime: "2019-04-08T16:20:35Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
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