apiVersion: v1 kind: Service metadata: name: atlas-media spec: selector: app.kubernetes.io/name: atlas-media ports: - name: s3 port: 3900 --- apiVersion: apps/v1 kind: StatefulSet metadata: name: atlas-media spec: serviceName: atlas-media replicas: 1 selector: matchLabels: app.kubernetes.io/name: atlas-media template: metadata: labels: app.kubernetes.io/name: atlas-media spec: automountServiceAccountToken: false securityContext: runAsNonRoot: true runAsUser: 10001 runAsGroup: 10001 fsGroup: 10001 seccompProfile: type: RuntimeDefault containers: - name: garage image: dxflrs/garage:v2.6.0@sha256:4b5a318fc9fe2fbec5d3af590eeafe05d83492e6411266fa0b9e215c20264013 command: [/garage] args: [server, --single-node, --default-bucket] securityContext: allowPrivilegeEscalation: false capabilities: drop: [ALL] envFrom: - secretRef: name: atlas-media-bootstrap ports: - name: s3 containerPort: 3900 readinessProbe: tcpSocket: port: s3 periodSeconds: 5 resources: requests: {cpu: 50m, memory: 96Mi} limits: {cpu: '1', memory: 256Mi} volumeMounts: - name: config mountPath: /etc/garage.toml subPath: garage.toml readOnly: true - name: store mountPath: /store volumes: - name: config secret: secretName: atlas-media-config volumeClaimTemplates: - metadata: name: store spec: accessModes: [ReadWriteOnce] resources: requests: storage: 4Gi