Преглед изворни кода

Corrijo problema con los secrets

Celestino Rey пре 4 месеци
родитељ
комит
9ae1af849b
3 измењених фајлова са 18 додато и 3 уклоњено
  1. 3 3
      php-deployment.yaml
  2. 1 0
      secreto.yaml
  3. 14 0
      uninstall.sh

+ 3 - 3
php-deployment.yaml

@@ -12,7 +12,7 @@ spec:
   type: NodePort
   ports:
     - name: phpadmin
-      nodePort: 30088
+      nodePort: 30087
       port: 80
       targetPort: phpmyadm
 ---
@@ -53,5 +53,5 @@ spec:
             - name: MYSQL_ROOT_PASSWORD
               valueFrom:
                 secretKeyRef:
-                  name: mysqlwp-pass
-                  key: password
+                  name: mypwds
+                  key: rootPassword

+ 1 - 0
secreto.yaml

@@ -2,6 +2,7 @@ apiVersion: v1
 kind: Secret
 metadata:
   name: mypwds
+  namespace: mysql-cluster
 data:
   rootPassword: RHNhLTAyMTM=
   rootUser: cm9vdA==

+ 14 - 0
uninstall.sh

@@ -0,0 +1,14 @@
+    kubectl delete -f mysql-innodb-cluster.yaml
+
+    kubectl delete -f secreto.yaml
+
+    kubectl delete ns mysql-cluster
+
+    kubectl delete -f https://raw.githubusercontent.com/mysql/mysql-operator/9.6.0-2.2.7/deploy/deploy-operator.yaml
+
+    kubectl delete -f https://raw.githubusercontent.com/mysql/mysql-operator/9.6.0-2.2.7/deploy/deploy-crds.yaml
+
+
+
+
+