about summary refs log tree commit diff
path: root/k8s
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-03-16T18·16+0100
committerVincent Ambo <tazjin@gmail.com>2017-03-16T18·16+0100
commit6e7262763ca7d0d94324477907161bd3907c9c1e (patch)
tree04152cf23ea1b5fa46157354677df84cf7401a3c /k8s
parent9a1d876c34fb930936fa2966d8ed0ab72c5ceea2 (diff)
feat k8s: Add demo deployments inside k8s
Diffstat (limited to 'k8s')
-rw-r--r--k8s/child.yaml27
-rw-r--r--k8s/parent.yaml27
2 files changed, 54 insertions, 0 deletions
diff --git a/k8s/child.yaml b/k8s/child.yaml
new file mode 100644
index 000000000000..aa2e318262cd
--- /dev/null
+++ b/k8s/child.yaml
@@ -0,0 +1,27 @@
+# This is a child quinistry, running via an image served off the parent.
+---
+apiVersion: extensions/v1beta1
+kind: DaemonSet
+metadata:
+  name: quinistry-gen2
+  labels:
+    k8s-app: quinistry
+    quinistry/role: child
+    quinistry/generation: '2'
+spec:
+  template:
+    metadata:
+      labels:
+        k8s-app: quinistry
+        quinistry/role: child
+        quinistry/generation: '2'
+    spec:
+      containers:
+        - name: quinistry
+          # Bootstrap via Docker Hub (or any other registry)
+          image: localhost:5000/quinistry
+          ports:
+            - name: registry
+              containerPort: 8080
+              # Incremented hostPort, 
+              hostPort: 5001
diff --git a/k8s/parent.yaml b/k8s/parent.yaml
new file mode 100644
index 000000000000..0db2fe300e1e
--- /dev/null
+++ b/k8s/parent.yaml
@@ -0,0 +1,27 @@
+# This is a bootstrapped Quinistry DaemonSet. The initial image
+# comes from Docker Hub
+---
+apiVersion: extensions/v1beta1
+kind: DaemonSet
+metadata:
+  name: quinistry
+  labels:
+    k8s-app: quinistry
+    quinistry/role: parent
+    quinistry/generation: '1'
+spec:
+  template:
+    metadata:
+      labels:
+        k8s-app: quinistry
+        quinistry/role: parent
+        quinistry/generation: '1'
+    spec:
+      containers:
+        - name: quinistry
+          # Bootstrap via Docker Hub (or any other registry)
+          image: tazjin/quinistry
+          ports:
+            - name: registry
+              containerPort: 8080
+              hostPort: 5000