Skip to content

Instantly share code, notes, and snippets.

@bryanl
Created December 2, 2019 17:40
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 bryanl/99f5c1dae1aa5176f62ad9ab5dd6441c to your computer and use it in GitHub Desktop.
Save bryanl/99f5c1dae1aa5176f62ad9ab5dd6441c to your computer and use it in GitHub Desktop.
hungry
apiVersion: v1
kind: Namespace
metadata:
name: lab-5
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
lab: lab-5
name: hungry
namespace: lab-5
spec:
replicas: 1
selector:
matchLabels:
lab: lab-5
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
lab: lab-5
spec:
containers:
- image: docker.io/bryanl/k8st-hungry:latest
name: app
ports:
- containerPort: 8080
name: http
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