Skip to content

Instantly share code, notes, and snippets.

@PradeepLoganathan
Created December 31, 2020 09:23
Show Gist options
  • Save PradeepLoganathan/049187b080e0e5a922b03fade4dbca22 to your computer and use it in GitHub Desktop.
Save PradeepLoganathan/049187b080e0e5a922b03fade4dbca22 to your computer and use it in GitHub Desktop.
deployment manifest for sampleapp
apiVersion: apps/v1
kind: Deployment
metadata:
name: sampleapp-deployment
spec:
replicas: 3
selector:
matchLabels:
app: sampleapp
template:
metadata:
labels:
app: sampleapp
spec:
containers:
- name: webserver
image: k8sregstyr.azurecr.io/sampleapp:0.5
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
resources:
limits:
memory: 512Mi
cpu: "1"
imagePullSecrets:
- name: acr-secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment