From d3cd9c129f439b69df514551e474848e0dd71a67 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 24 Oct 2022 19:20:02 +0000 Subject: [PATCH] The all-knowing copilot-ops bot has delivered a YAML ailment for your development desires --- .../generated-by-copilot-ops1.yaml | 56 ++++++++++++++++--- 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/generated-by-copilot-ops/generated-by-copilot-ops1.yaml b/generated-by-copilot-ops/generated-by-copilot-ops1.yaml index ab83fab..cca3421 100644 --- a/generated-by-copilot-ops/generated-by-copilot-ops1.yaml +++ b/generated-by-copilot-ops/generated-by-copilot-ops1.yaml @@ -1,22 +1,60 @@ + +apiVersion: v1 +kind: Service +metadata: + name: mariadb + labels: + app: mariadb +spec: + ports: + - port: 3306 + targetPort: 3306 + selector: + app: mariadb +--- apiVersion: apps/v1 kind: Deployment metadata: - name: jupyter-notebook + name: mariadb + labels: + app: mariadb spec: replicas: 1 selector: matchLabels: - app: jupyter-notebook + app: mariadb template: metadata: labels: - app: jupyter-notebook + app: mariadb spec: containers: - - name: jupyter-notebook - image: jupyter/tensorflow-notebook - resources: - limits: - nvidia.com/gpu: 1 + - name: mariadb + image: mariadb:10.3 + env: + - name: MYSQL_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: mariadb-root-password + key: password ports: - - containerPort: 8888 + - containerPort: 3306 + name: mariadb + volumeMounts: + - name: mariadb-persistent-storage + mountPath: /var/lib/mysql + volumes: + - name: mariadb-persistent-storage + persistentVolumeClaim: + claimName: mariadb-pv-claim +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: mariadb-pv-claim +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi