-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathfrontend-controller.yaml
48 lines (48 loc) · 1.56 KB
/
frontend-controller.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
38
39
40
41
42
43
44
45
46
47
48
apiVersion: v1
kind: ReplicationController
metadata:
name: frontend-contr
# these labels can be applied automatically
# from the labels in the pod template if not set
labels:
app: graphviz
tier: frontend
spec:
replicas: 3
# these labels can be applied automatically
# from the labels in the pod template if not set
# selector:
# app: graphviz
# tier: frontend
# Pod Template
template:
metadata:
labels:
app: graphviz
tier: frontend
spec:
containers:
- name: webapp
# Uncomment this line to use the public docker hub image
image: omerio/graphviz-webapp
# my own private Container Registry image
#image: gcr.io/gdg-apps-1090/graphviz-webapp
resources:
# The resources specification for each Pod, more details here:
# http://kubernetes.io/v1.1/docs/design/resources.html#resource-specifications
requests:
cpu: 100m
memory: 100Mi
env:
# Environment variables that will be available in the Pod
- name: GET_HOSTS_FROM
value: dns
# If your cluster config does not include a dns service, then to
# delete these values. The Pod will fallback on a hardcoded IP address
ports:
# More details on the container ports here,
# http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_containerport
# The port exposed by the container
- containerPort: 8080
# The port exposed on the host
# hostPort: 8080