
As per http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/ docker has stopped answering dockerfile/redis and dockerfile/nginx. Fix all users in our tree. Sadly this means a lot of published examples are now broken.
25 lines
623 B
YAML
25 lines
623 B
YAML
apiVersion: v1beta3
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: nginx-controller
|
|
spec:
|
|
replicas: 2
|
|
# selector identifies the set of Pods that this
|
|
# replicaController is responsible for managing
|
|
selector:
|
|
name: nginx
|
|
# podTemplate defines the 'cookie cutter' used for creating
|
|
# new pods when necessary
|
|
template:
|
|
metadata:
|
|
labels:
|
|
# Important: these labels need to match the selector above
|
|
# The api server enforces this constraint.
|
|
name: nginx
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx
|
|
ports:
|
|
- containerPort: 80
|