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