feat k8s: Add demo deployments inside k8s
This commit is contained in:
parent
9a1d876c34
commit
6e7262763c
2 changed files with 54 additions and 0 deletions
27
k8s/child.yaml
Normal file
27
k8s/child.yaml
Normal file
|
@ -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
|
27
k8s/parent.yaml
Normal file
27
k8s/parent.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue