Add local registry definition

Change-Id: I79a019bb6ad13f70a494f097f9ed322746270e75
This commit is contained in:
Artur Zarzycki 2016-06-10 11:39:19 +02:00
parent bfb277d05f
commit 0b5aac0a71
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Pod
metadata:
name: registry
labels:
app: registry
spec:
containers:
- name: registry
image: registry:2
env:
imagePullPolicy: Always
ports:
- containerPort: 5000
hostPort: 5000

View File

@ -0,0 +1,15 @@
kind: "Service"
apiVersion: "v1"
metadata:
name: "registry-service"
spec:
selector:
app: "registry"
ports:
-
protocol: "TCP"
port: 5000
targetPort: 5000
nodePort: 31500
type: "NodePort"