diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-02-18 23:09:27 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-02-18 23:09:27 +0100 |
commit | 7ae2c0a221dae2368844e32a5646e0d94b48c37a (patch) | |
tree | 0e7e46337d229ddf74077965e8bbf051cfbb50da /templates/default/kubernetes/onionbalance-deploy.yml.j2 | |
parent | onion service works now (diff) |
onionbalance should be working now
Diffstat (limited to 'templates/default/kubernetes/onionbalance-deploy.yml.j2')
-rw-r--r-- | templates/default/kubernetes/onionbalance-deploy.yml.j2 | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/templates/default/kubernetes/onionbalance-deploy.yml.j2 b/templates/default/kubernetes/onionbalance-deploy.yml.j2 new file mode 100644 index 0000000..c63b247 --- /dev/null +++ b/templates/default/kubernetes/onionbalance-deploy.yml.j2 @@ -0,0 +1,63 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: {{ namespace }} + name: onionbalance + labels: + app: onionbalance +spec: + replicas: 1 + selector: + matchLabels: + app: onionbalance + strategy: + type: Recreate + revisionHistoryLimit: 5 + template: + metadata: + labels: + app: onionbalance + spec: + nodeName: {{ worker.name }} + serviceAccountName: onionbalance + securityContext: + runAsUser: 998 + fsGroup: 998 + containers: + - name: tor + image: spreadspace/onionbalance:{{ desc.globals.deployment.parameter.onionbalance_image_version }} + imagePullPolicy: Always + args: + - /run-tor.sh + volumeMounts: + - name: onion-run + mountPath: /var/run/tor + - name: onion-lib + mountPath: /var/lib/tor + - name: balance + image: spreadspace/onionbalance:{{ desc.globals.deployment.parameter.onionbalance_image_version }} + imagePullPolicy: Always + args: + - /run-balance.sh + env: + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + volumeMounts: + - name: onion-run + mountPath: /var/run/tor + - name: onion-keys + readOnly: true + mountPath: /var/run/secrets/spreadspace.org/onionbalance + volumes: + - name: onion-run + emptyDir: + medium: Memory + - name: onion-lib + hostPath: + type: DirectoryOrCreate + path: /var/lib/tor/{{ desc.globals.name }}/_balance + - name: onion-keys + secret: + secretName: onionbalance |