Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (38 sloc) 1.23 KB
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