Skip to content

Instantly share code, notes, and snippets.

@Maurifc
Created July 23, 2024 13:02
Show Gist options
  • Save Maurifc/ff834df4e237b1163bb43505980e5541 to your computer and use it in GitHub Desktop.
Save Maurifc/ff834df4e237b1163bb43505980e5541 to your computer and use it in GitHub Desktop.
k8s-http-echo
apiVersion: v1
kind: Service
metadata:
labels:
app: echo
name: echo
spec:
ports:
- port: 80
name: http
protocol: TCP
targetPort: 8080
selector:
app: echo
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: echo
name: echo
spec:
replicas: 1
selector:
matchLabels:
app: echo
strategy: {}
template:
metadata:
labels:
app: echo
spec:
containers:
- image: mendhak/http-https-echo:33
name: echo
ports:
- containerPort: 8080
resources: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment