Skip to content

Instantly share code, notes, and snippets.

@cicorias
Forked from erikaulin/deployment.yaml
Created August 5, 2021 00:01
Show Gist options
  • Save cicorias/71d95b8816e8ddd26e83c8b9184cdc2f to your computer and use it in GitHub Desktop.
Save cicorias/71d95b8816e8ddd26e83c8b9184cdc2f 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