First
This commit is contained in:
commit
f1decc1dd4
19
sqnotes/ingr.yml
Normal file
19
sqnotes/ingr.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: notes-ingr
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
#- host: test.squi.fr
|
||||||
|
- host: notes.squi.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: notes
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
|
path: /
|
||||||
|
|
38
sqnotes/notes-daemonset.yaml
Normal file
38
sqnotes/notes-daemonset.yaml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f squinotes.yml
|
||||||
|
kompose.version: 1.26.1 (a9d05d509)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: notes
|
||||||
|
name: notes
|
||||||
|
spec:
|
||||||
|
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
|
||||||
|
resources: {}
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /app/data
|
||||||
|
name: notes
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: notes
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: sqnotes-data
|
||||||
|
updateStrategy: {}
|
||||||
|
status:
|
||||||
|
currentNumberScheduled: 0
|
||||||
|
desiredNumberScheduled: 0
|
||||||
|
numberMisscheduled: 0
|
||||||
|
numberReady: 0
|
13
sqnotes/notes-persistentvolumeclaim.yaml
Normal file
13
sqnotes/notes-persistentvolumeclaim.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: sqnotes-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: ""
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
volumeName: sqnotes-data
|
19
sqnotes/notes-service.yaml
Normal file
19
sqnotes/notes-service.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f squinotes.yml
|
||||||
|
kompose.version: 1.26.1 (a9d05d509)
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
io.kompose.service: notes
|
||||||
|
name: notes
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8080"
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
selector:
|
||||||
|
io.kompose.service: notes
|
||||||
|
status:
|
||||||
|
loadBalancer: {}
|
15
sqnotes/vol.yml
Normal file
15
sqnotes/vol.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: sqnotes-data
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 10Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
nfs:
|
||||||
|
server: nas.sq.lan
|
||||||
|
path: "/swarmdata/notes"
|
||||||
|
mountOptions:
|
||||||
|
- nfsvers=4.2
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user