-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbackend-controller.yaml
38 lines (38 loc) · 1.23 KB
/
backend-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
apiVersion: v1
kind: ReplicationController
metadata:
name: backend-contr
# these labels can be applied automatically
# from the labels in the pod template if not set
labels:
app: graphviz
tier: backend
spec:
replicas: 2
# Pod Template
template:
metadata:
labels:
app: graphviz
tier: backend
spec:
containers:
- name: server
# Uncomment this line to use the public docker hub image
image: omerio/graphviz-server
# my own private Container Registry image
#image: gcr.io/gdg-apps-1090/graphviz-server
# Arguments to the image entrypoint, more details here:
# http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_container
args: ["8080"]
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
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