Created
March 29, 2022 03:09
-
-
Save yokawasa/78f520c11cfaafbbcabcd769cd5dc99b to your computer and use it in GitHub Desktop.
HTTP Echo Server Kuberentes Manifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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