Skip to content

Instantly share code, notes, and snippets.

@VMuliadi
Created October 5, 2022 04:02
Show Gist options
  • Save VMuliadi/2bee794344f0f2045e8e54bcf99e17c3 to your computer and use it in GitHub Desktop.
Save VMuliadi/2bee794344f0f2045e8e54bcf99e17c3 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
labels:
app: echoserver
spec:
replicas: 1
selector:
matchLabels:
app: echoserver
template:
metadata:
labels:
app: echoserver
spec:
containers:
- image: gcr.io/google_containers/echoserver:1.0
imagePullPolicy: Always
name: echoserver
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: echoserver
labels:
app: echoserver
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
selector:
app: echoserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment