Switched all to deployments

This commit is contained in:
Justine Pelletreau
2022-07-06 01:08:10 +02:00
parent 0adf6c5733
commit 7fea71a4da
26 changed files with 63 additions and 586 deletions

View File

@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f squinotes.yml
kompose.version: 1.26.1 (a9d05d509)
labels:
io.kompose.service: notes
name: notes
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: notes
template:
metadata:
labels:
io.kompose.service: notes
spec:
containers:
- image: squi/sqnotes:1.0
name: notes
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /app/data
name: notes
restartPolicy: Always
volumes:
- name: notes
persistentVolumeClaim:
claimName: sqnotes-data