diff options
Diffstat (limited to 'kubernetes/wordpress-demo/wordpress-custodia-rc.yaml')
-rw-r--r-- | kubernetes/wordpress-demo/wordpress-custodia-rc.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/kubernetes/wordpress-demo/wordpress-custodia-rc.yaml b/kubernetes/wordpress-demo/wordpress-custodia-rc.yaml new file mode 100644 index 0000000..afb7bf8 --- /dev/null +++ b/kubernetes/wordpress-demo/wordpress-custodia-rc.yaml @@ -0,0 +1,47 @@ +apiVersion: v1 +kind: ReplicationController +metadata: + name: frontend + labels: + name: frontend +spec: + replicas: 1 + selector: + name: frontend + version: v1 + template: + metadata: + labels: + name: frontend + version: v1 + secrets_namespace: wordpress + spec: + containers: + - name: wordpress + image: wordpress + # $ docker pull wordpress + # $ docker inspect --format='{{json .Config.Entrypoint}} {{json .Config.Cmd}}' wordpress + command: ["/custodia/go-secret"] + args: ["/entrypoint.sh", "apache2-foreground"] + ports: + - containerPort: 80 + name: wordpress + env: + - name: SECRET_WORDPRESS_DB_PASSWORD + value: db_password + volumeMounts: + # name must match the volume name below + - name: wordpress-persistent-storage + # mount path within the container + mountPath: /var/www/html + - name: custodia + mountPath: /custodia + readOnly: true + volumes: + - name: wordpress-persistent-storage + persistentVolumeClaim: + claimName: myclaim-web + - name: custodia + hostPath: + path: /var/lib/custodia/client + |