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