Skip to content

Instantly share code, notes, and snippets.

@jmrobles
Created May 17, 2020 19:35
Show Gist options
  • Save jmrobles/bca34016c24ef5a910b8bfcca0d31ef4 to your computer and use it in GitHub Desktop.
Save jmrobles/bca34016c24ef5a910b8bfcca0d31ef4 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuard
namespace: app
spec:
selector:
matchLabels:
app: kuard
replicas: 1
template:
metadata:
labels:
app: kuard
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:1
imagePullPolicy: Always
name: kuard
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: kuard
namespace: app
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
selector:
app: kuard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment