Skip to content

Instantly share code, notes, and snippets.

@aevitas
Created June 17, 2021 13:00
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 aevitas/9994c56f32d330e3373456d9ba37acd7 to your computer and use it in GitHub Desktop.
Save aevitas/9994c56f32d330e3373456d9ba37acd7 to your computer and use it in GitHub Desktop.
example-deployment.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
labels:
name: web
spec:
replicas: 1
selector:
matchLabels:
name: web
template:
metadata:
labels:
name: web
spec:
containers:
- name: web
image: cr.blackrain.io/web:latest
imagePullPolicy: Always
env:
- name: ServiceDiscovery__EndPoint
value: "http://discovery/"
resources:
requests:
cpu: 50m
memory: 128Mi
ports:
- containerPort: 80
nodeSelector:
beta.kubernetes.io/os: linux
imagePullSecrets:
- name: blackrain-azure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment