Skip to content

Instantly share code, notes, and snippets.

@shpwrck
Created February 24, 2021 19:55
Show Gist options
  • Save shpwrck/d06569be938fa93239930d60f773cd83 to your computer and use it in GitHub Desktop.
Save shpwrck/d06569be938fa93239930d60f773cd83 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: deployment-default-helloworld
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
workload.user.cattle.io/workloadselector: deployment-default-helloworld
spec:
containers:
- image: rancher/hello-world
imagePullPolicy: Always
name: helloworld
ports:
- containerPort: 80
name: http
protocol: TCP
resources: {}
securityContext:
allowPrivilegeEscalation: false
capabilities: {}
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment