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: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/arch operator: In values: - amd64 containers: - name: osmedeus image: qdii/osmedeus:4.8.0 imagePullPolicy: "Always" command: ["/usr/local/bin/osmedeus","server"] args: ["osmedeus"] env: - name: TELEGRAM_CHANNEL valueFrom: secretKeyRef: name: telegram key: channel - name: TELEGRAM_API_TOKEN valueFrom: secretKeyRef: name: telegram key: apitoken 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" imagePullSecrets: - name: regcred 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