From b4bb2f466bd141623cf04ffe9b2f8659233670ad Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Tue, 27 Jul 2021 12:28:21 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1ado=20el=20phpmyadmin=20al=20cluster=20d?= =?UTF-8?q?e=20raspberry=20pi=20400?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Firefly/rbp400/php-deployment.yaml | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Firefly/rbp400/php-deployment.yaml diff --git a/Firefly/rbp400/php-deployment.yaml b/Firefly/rbp400/php-deployment.yaml new file mode 100644 index 00000000..8bc5e37e --- /dev/null +++ b/Firefly/rbp400/php-deployment.yaml @@ -0,0 +1,54 @@ +apiVersion: v1 +kind: Service +metadata: + name: phpmyadmin-firefly + namespace: firefly + labels: + app: firefly-iii +spec: + selector: + app: firefly-iii + tier: phpmyadmin + type: NodePort + ports: + - name: phpadmin + port: 80 + nodePort: 30180 + targetPort: phpmyadm +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: phpmyadmin-firefly + namespace: firefly + labels: + app: firefly-iii +spec: + selector: + matchLabels: + app: firefly-iii + tier: phpmyadmin + strategy: + type: Recreate + template: + metadata: + labels: + app: firefly-iii + tier: phpmyadmin + spec: + containers: + - name: phpmyadmin + image: arm64v8/phpmyadmin + ports: + - containerPort: 80 + name: phpmyadm + env: + - name: PMA_HOST + value: firefly-iii-mysql + - name: PMA_PORT + value: "3306" + - name: MYSQL_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: firefly-iii-secrets + key: db_password