apiVersion: apps/v1 kind: Deployment metadata: labels: k8s-app: octobot-fabi name: octobot namespace: octobot-fabi spec: selector: matchLabels: k8s-app: octobot-fabi strategy: rollingUpdate: maxUnavailable: 0 template: metadata: labels: k8s-app: octobot-fabi spec: containers: - resources: requests: cpu: "100m" memory: "200Mi" limits: cpu: "1" memory: "800Mi" # # To make manual configurations on the container # command: # - "sleep" # - "9999" image: drakkarsoftware/octobot:stable imagePullPolicy: Always # livenessProbe: # failureThreshold: 3 # httpGet: # path: /livez # port: https # scheme: HTTPS # periodSeconds: 10 name: metrics-server ports: - containerPort: 5001 name: http protocol: TCP # readinessProbe: # failureThreshold: 3 # httpGet: # path: /readyz # port: https # scheme: HTTPS # periodSeconds: 10 # securityContext: # #readOnlyRootFilesystem: true # runAsNonRoot: true # runAsUser: 1000 volumeMounts: # - mountPath: /octobot/user # name: octobot-config # subPath: config.json - mountPath: /octobot/user name: user - mountPath: /octobot/tentacles name: tentacles - mountPath: /octobot/logs name: logs nodeSelector: kubernetes.io/os: linux # serviceAccountName: metrics-server volumes: - name: user persistentVolumeClaim: claimName: octobot-user - name: tentacles persistentVolumeClaim: claimName: octobot-tentacles - emptyDir: {} name: logs