Switched all to deployments
This commit is contained in:
32
sqnotes/notes-deployment.yaml
Normal file
32
sqnotes/notes-deployment.yaml
Normal 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
|
Reference in New Issue
Block a user