Skip to content

Instantly share code, notes, and snippets.

@jmrobles
Created December 20, 2020 15:15
Show Gist options
  • Save jmrobles/10299a4bdb51c05da7aa08971eeb86f1 to your computer and use it in GitHub Desktop.
Save jmrobles/10299a4bdb51c05da7aa08971eeb86f1 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-landing
spec:
selector:
matchLabels:
app: my-landing
template:
metadata:
labels:
app: my-landing
spec:
imagePullSecrets:
- name: pipeline-docker-registry
containers:
- name: my-landing
image: registry.example.com/my-landing:${CICD_EXECUTION_SEQUENCE}
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: my-landing-svc
spec:
selector:
app: my-landing
ports:
- port: 80
targetPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment