Merge pull request #25 from sgoings/docker-registry-pod-rc

feat(docker-registry): use svc and rc
This commit is contained in:
Seth Goings
2015-11-12 14:27:28 -07:00
4 changed files with 33 additions and 13 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: docker-registry
home: https://github.com/docker/distribution
version: 0.1.0
version: 0.2.0
description: The Docker toolset to pack, ship, store, and deliver content.
maintainers:
- Matt Fisher <mfisher@deis.com>
@@ -1,12 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: registry
labels:
heritage: helm
spec:
containers:
- name: registry
image: registry:2.1.1
ports:
- containerPort: 5000
@@ -0,0 +1,19 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: registry
labels:
app: registry
heritage: helm
spec:
replicas: 1
template:
metadata:
labels:
app: registry
spec:
containers:
- name: registry
image: registry:2.1.1
ports:
- containerPort: 5000
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: registry
labels:
app: registry
heritage: helm
spec:
ports:
- port: 80
targetPort: 5000
selector:
app: registry