From 3d57c7e4d02e8b769b8bb4b527a95fa819b77749 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 22 Sep 2014 16:19:19 -0700 Subject: WIP Infra - Support for multiple GCE projects * Add support in cloud.rb for reading configuration * Add support for docker-registry pod --- .../kubernetes_kubelet/files/registry-service.json | 10 ++++++++ roles/pods/files/pods/docker-registry.json | 30 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 roles/kubernetes_kubelet/files/registry-service.json create mode 100644 roles/pods/files/pods/docker-registry.json (limited to 'roles') 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" + } +} -- cgit v1.2.3