Skip to content

Instantly share code, notes, and snippets.

@yokawasa
Created March 29, 2022 03:09
Show Gist options
  • Save yokawasa/78f520c11cfaafbbcabcd769cd5dc99b to your computer and use it in GitHub Desktop.
Save yokawasa/78f520c11cfaafbbcabcd769cd5dc99b to your computer and use it in GitHub Desktop.
HTTP Echo Server Kuberentes Manifest
## Docker Container's from
## https://code.mendhak.com/docker-http-https-echo/
apiVersion: v1
kind: ServiceAccount
metadata:
name: httpecho
---
apiVersion: v1
kind: Service
metadata:
name: httpecho
labels:
app: httpecho
spec:
ports:
- name: http
port: 8000
targetPort: 80
selector:
app: httpecho
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpecho
spec:
replicas: 1
selector:
matchLabels:
app: httpecho
template:
metadata:
labels:
app: httpecho
# If the default policy in ConfigMap is disabled, turn this annotation true to inject istio-proxy.
# annotations:
# sidecar.istio.io/inject: "true"
spec:
serviceAccountName: httpecho
containers:
- image: mendhak/http-https-echo
imagePullPolicy: IfNotPresent
name: httpecho
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment