summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/kubernetes_kubelet/files/registry-service.json10
-rw-r--r--roles/pods/files/pods/docker-registry.json30
2 files changed, 40 insertions, 0 deletions
diff --git a/roles/kubernetes_kubelet/files/registry-service.json b/roles/kubernetes_kubelet/files/registry-service.json
new file mode 100644
index 000000000..96eaf261c
--- /dev/null
+++ b/roles/kubernetes_kubelet/files/registry-service.json
@@ -0,0 +1,10 @@
+{
+ "id": "dockerregistry",
+ "kind": "Service",
+ "apiVersion": "v1beta1",
+ "port": 8888,
+ "selector": {
+ "name": "docker-registry"
+ }
+}
+
diff --git a/roles/pods/files/pods/docker-registry.json b/roles/pods/files/pods/docker-registry.json
new file mode 100644
index 000000000..388a1015e
--- /dev/null
+++ b/roles/pods/files/pods/docker-registry.json
@@ -0,0 +1,30 @@
+{
+ "kind": "Pod",
+ "version": "v1beta1",
+ "desiredState": {
+ "manifest": {
+ "version": "v1beta1",
+ "containers": [{
+ "name": "docker-registry",
+ "image": "registry",
+ "volumeMounts": [{
+ "name": "data",
+ "mountPath": "/var/lib/docker-registry"
+ }],
+ "ports": [{
+ "containerPort": 5000,
+ "hostPort": 9999
+ }]
+ }],
+ "volumes": [{
+ "name": "data",
+ "source": {
+ "emptyDir": true
+ }
+ }]
+ }
+ },
+ "labels": {
+ "name": "docker-registry"
+ }
+}