Last active
June 8, 2022 14:10
-
-
Save nordineb/0207ae25a2a3fd3cffb7c9949933aa25 to your computer and use it in GitHub Desktop.
deploy
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: echo-deployment | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: echo-server | |
template: | |
metadata: | |
labels: | |
app: echo-server | |
spec: | |
containers: | |
- name: echo-server | |
image: hashicorp/http-echo | |
args: ["-text", "Hello nordine"] | |
env: | |
- name: text | |
value: "Hello nordine" | |
ports: | |
- name: http-port | |
containerPort: 5678 | |
resources: | |
limits: | |
cpu: 20m | |
memory: 10Mi | |
requests: | |
cpu: 10m | |
memory: 1Mi | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: echoheaders | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: echoheaders | |
template: | |
metadata: | |
labels: | |
app: echoheaders | |
spec: | |
containers: | |
- name: echoheaders | |
image: k8s.gcr.io/echoserver:1.10 | |
ports: | |
- containerPort: 8443 | |
resources: | |
limits: | |
cpu: 20m | |
memory: 10Mi | |
requests: | |
cpu: 10m | |
memory: 1Mi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment