Skip to content

Instantly share code, notes, and snippets.

@sudermanjr
Last active November 9, 2018 03:46
Show Gist options
  • Save sudermanjr/8baaf305c4178d197dc69b2f4aba271e to your computer and use it in GitHub Desktop.
Save sudermanjr/8baaf305c4178d197dc69b2f4aba271e to your computer and use it in GitHub Desktop.
Kube 202 Deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: nginx
color: green
name: test
namespace: testing
spec:
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
color: green
spec:
containers:
- image: nginx:1.15.3
imagePullPolicy: IfNotPresent
name: nginx
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
cpu: 100m
memory: 64Mi
requests:
cpu: 100m
memory: 64Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment