Skip to content

Instantly share code, notes, and snippets.

@imwower
Created September 13, 2018 09:25
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 imwower/f7b3224f6075906448d222c9e8d540d2 to your computer and use it in GitHub Desktop.
Save imwower/f7b3224f6075906448d222c9e8d540d2 to your computer and use it in GitHub Desktop.
nginx.yaml
apiVersion: apps/v1beta2
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
field.cattle.io/creatorId: user-2xdrm
creationTimestamp: null
generation: 1
labels:
workload.user.cattle.io/workloadselector: deployment-base-nginx
name: nginx
selfLink: /apis/apps/v1beta2/namespaces/base/deployments/nginx
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: deployment-base-nginx
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
workload.user.cattle.io/workloadselector: deployment-base-nginx
spec:
affinity: {}
containers:
- image: nginx
imagePullPolicy: Always
name: nginx
resources: {}
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
volumeMounts:
- mountPath: /etc/localtime
name: vol1
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /etc/localtime
type: File
name: vol1
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment