diff options
Diffstat (limited to 'templates/default/kubernetes')
4 files changed, 147 insertions, 0 deletions
diff --git a/templates/default/kubernetes/flumotion-manager-cm.yml.j2 b/templates/default/kubernetes/flumotion-manager-cm.yml.j2 new file mode 100644 index 0000000..d29cff6 --- /dev/null +++ b/templates/default/kubernetes/flumotion-manager-cm.yml.j2 @@ -0,0 +1,23 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + namespace: {{ namespace }} + name: flumotion-manager + labels: + app: flumotion + type: manager +data: + planet.xml: | + <?xml version="1.0"?> + <planet> + <manager name="planet"> + <host>0.0.0.0</host> + <port>8642</port> + <transport>tcp</transport> + <component name="manager-bouncer" type="htpasswdcrypt-bouncer"> + <property name="data"> + user:PSfNpHTkpTx1M + </property> + </component> + </manager> + </planet> diff --git a/templates/default/kubernetes/flumotion-manager-deploy.yml.j2 b/templates/default/kubernetes/flumotion-manager-deploy.yml.j2 new file mode 100644 index 0000000..4d86e89 --- /dev/null +++ b/templates/default/kubernetes/flumotion-manager-deploy.yml.j2 @@ -0,0 +1,43 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: {{ namespace }} + name: flumotion-manager + labels: + app: flumotion + type: manager +spec: + replicas: 1 + selector: + matchLabels: + app: flumotion + type: manager + strategy: + type: Recreate + revisionHistoryLimit: 5 + template: + metadata: + labels: + app: flumotion + type: manager + spec: + nodeName: dione + containers: + - name: flumotion + image: spreadspace/flumotion:manager + imagePullPolicy: Always + args: + - --verbose + - /etc/flumotion/planet.xml + volumeMounts: + - name: home + mountPath: /srv + - name: planet-config + mountPath: /etc/flumotion + volumes: + - name: home + emptyDir: + medium: Memory + - name: planet-config + configMap: + name: flumotion-manager diff --git a/templates/default/kubernetes/flumotion-manager-svc.yml.j2 b/templates/default/kubernetes/flumotion-manager-svc.yml.j2 new file mode 100644 index 0000000..5d0dac7 --- /dev/null +++ b/templates/default/kubernetes/flumotion-manager-svc.yml.j2 @@ -0,0 +1,20 @@ +apiVersion: v1 +kind: Service +metadata: + namespace: {{ namespace }} + name: flumotion-manager + labels: + app: flumotion + type: manager +spec: + selector: + app: flumotion + type: manager + clusterIP: {{ desc.globals.manager.host }} + ports: + - name: ssl + port: 7531 + protocol: TCP + - name: plain + port: 8642 + protocol: TCP diff --git a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 new file mode 100644 index 0000000..ea040d0 --- /dev/null +++ b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 @@ -0,0 +1,61 @@ +apiVersion: apps/v1beta2 +kind: Deployment +metadata: + namespace: {{ namespace }} + name: flumotion-worker-{{ worker_name }} + labels: + app: flumotion + type: worker +spec: + replicas: 1 + selector: + matchLabels: + app: flumotion + type: worker + strategy: + type: Recreate + revisionHistoryLimit: 5 + template: + metadata: + labels: + app: flumotion + type: worker + spec: + nodeName: dione + containers: + - name: flumotion + image: spreadspace/flumotion:worker + imagePullPolicy: Always + args: + - --verbose + - -H flumotion-manager + - -P 8642 + - -T tcp + - -n {{ worker_name }} + - -u user + - -p test + securityContext: + privileged: true + volumeMounts: + - name: home + mountPath: /srv + - name: decklink-devices + mountPath: /dev/blackmagic + - name: decklink-libs + subPath: libDeckLinkAPI.so + mountPath: /usr/lib/libDeckLinkAPI.so + - name: decklink-libs + subPath: libDeckLinkPreviewAPI.so + mountPath: /usr/lib/libDeckLinkPreviewAPI.so + volumes: + - name: home + emptyDir: + medium: Memory + - name: decklink-devices + hostPath: + type: Directory + path: /dev/blackmagic + - name: decklink-libs + hostPath: + type: Directory + path: /usr/lib/ |