Skip to content

Commit

Permalink
The all-knowing copilot-ops bot has delivered a YAML ailment for your…
Browse files Browse the repository at this point in the history
… development desires
  • Loading branch information
Your Name committed Oct 24, 2022
1 parent 5922ec9 commit d3cd9c1
Showing 1 changed file with 47 additions and 9 deletions.
56 changes: 47 additions & 9 deletions generated-by-copilot-ops/generated-by-copilot-ops1.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d3cd9c1

Please sign in to comment.