123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- 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
|