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