Skip to content

Instantly share code, notes, and snippets.

@erikaulin
Last active February 1, 2022 18:05
Show Gist options
  • Save erikaulin/d4de231655a1a5011dae5ecc39a49956 to your computer and use it in GitHub Desktop.
Save erikaulin/d4de231655a1a5011dae5ecc39a49956 to your computer and use it in GitHub Desktop.
Kubernetes kuard deployment
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: kuard-deployment
labels:
app: kuard
spec:
replicas: 3
selector:
matchLabels:
app: kuard
template:
metadata:
labels:
app: kuard
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:1
name: kuard
ports:
- containerPort: 8080
name: http
---
apiVersion: v1
kind: Service
metadata:
name: kuard-service
spec:
selector:
app: kuard
ports:
- port: 80
targetPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment