Skip to content

Instantly share code, notes, and snippets.

@rinormaloku
Created December 23, 2021 17:02
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/8766c15ebcf4f76c251092e041f75efc to your computer and use it in GitHub Desktop.
Save rinormaloku/8766c15ebcf4f76c251092e041f75efc to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
labels:
app: echo-v1
name: echo-v1
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 5678
selector:
app: echo-v1
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: echo-v1
version: v1
name: echo-v1
spec:
replicas: 1
selector:
matchLabels:
app: echo-v1
version: v1
template:
metadata:
labels:
app: echo-v1
version: v1
spec:
containers:
- image: hashicorp/http-echo:0.2.3
imagePullPolicy: IfNotPresent
name: echo-v1
args:
- "-text=version-1"
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