Skip to content

Instantly share code, notes, and snippets.

@johananl
Last active January 5, 2021 14:38
Show Gist options
  • Save johananl/05cf73b6872bdb7e3393d06ed6b97dd6 to your computer and use it in GitHub Desktop.
Save johananl/05cf73b6872bdb7e3393d06ed6b97dd6 to your computer and use it in GitHub Desktop.
kuard sample k8s app
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuard
labels:
app: kuard
spec:
replicas: 1
selector:
matchLabels:
app: kuard
template:
metadata:
labels:
app: kuard
spec:
containers:
- name: kuard
image: gcr.io/kuar-demo/kuard-amd64:blue
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: kuard
spec:
selector:
app: kuard
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment