1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- apiVersion: v1
- kind: PersistentVolume
- metadata:
- name: osmedeus-pv
- spec:
- storageClassName: manual
- capacity:
- storage: 10Gi
- accessModes:
- - ReadWriteMany
- nfs:
- path: /volume2/FastNFS/osmedeus
- server: 192.168.2.44
- readOnly: false
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: osmedeus
- spec:
- storageClassName: manual
- accessModes:
- - ReadWriteMany
- resources:
- requests:
- storage: 10Gi
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: osmedeus
- spec:
- replicas: 1
- selector:
- matchLabels:
- name: osmedeus
- template:
- metadata:
- labels:
- name: osmedeus
- nginx: backend
- spec:
- containers:
- - name: osmedeus
- image: qdii/osmedeus:4.6.3
- imagePullPolicy: "Always"
- command: ["/usr/local/bin/osmedeus","server"]
- args: ["osmedeus"]
- volumeMounts:
- - name: osmedeus
- mountPath: /root/workspaces-osmedeus
- ports:
- - containerPort: 8000
- name: http
- livenessProbe:
- initialDelaySeconds: 300
- timeoutSeconds: 10
- httpGet:
- path: "/ui/#"
- scheme: "HTTPS"
- port: 8000
- httpHeaders:
- - name: Host
- value: "osmedeus.dodges.it"
- volumes:
- - name: osmedeus
- persistentVolumeClaim:
- claimName: osmedeus
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: osmedeus
- spec:
- type: ClusterIP
- ipFamilyPolicy: PreferDualStack
- selector:
- name: osmedeus
- ports:
- - protocol: TCP
- port: 8000
- targetPort: 8000
- name: http
|