Skip to content

Instantly share code, notes, and snippets.

@rinormaloku
Created December 24, 2021 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rinormaloku/ba413c83b9b84992fb120cb7f9031010 to your computer and use it in GitHub Desktop.
Save rinormaloku/ba413c83b9b84992fb120cb7f9031010 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
labels:
app: echo-v2
name: echo-v2
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 5678
selector:
app: echo-v2
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: echo-v2
version: v2
name: echo-v2
spec:
replicas: 1
selector:
matchLabels:
app: echo-v2
version: v2
template:
metadata:
labels:
app: echo-v2
version: v2
spec:
containers:
- image: hashicorp/http-echo:0.2.3
imagePullPolicy: IfNotPresent
name: echo-v2
args:
- "-text=version-2"
ports:
- containerPort: 5678
name: http
protocol: TCP
securityContext:
privileged: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment