-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
38 lines (37 loc) · 912 Bytes
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This is a deployment with associated metadata sidecar container, that can
# serve up information about the pod. This is handy for knowing what kind of
# pods are backing the requets you are sending.
apiVersion: apps/v1
kind: Deployment
metadata:
name: envhttpd-example
labels:
app: envhttpd-example
spec:
replicas: 3
selector:
matchLabels:
app: envhttpd-example
template:
metadata:
labels:
app: envhttpd-example
spec:
containers:
- name: main
image: lipanski/docker-static-website
ports:
- name: http
containerPort: 3000
- name: metadata
image: kilna/envhttpd
ports:
- name: http-metadata
containerPort: 8111
env:
- name: deployment_color
value: blue
- name: author
value: kilna
- name: image_version
value: latest