apiVersion: apps/v1 kind: StatefulSet metadata: name: {{.ObjectMeta.Name}} namespace: {{.ObjectMeta.Namespace}} labels: app: {{.ObjectMeta.Name}} devstar-resource-type: devstar-devcontainer spec: podManagementPolicy: OrderedReady replicas: 1 selector: matchLabels: app: {{.ObjectMeta.Name}} devstar-resource-type: devstar-devcontainer template: metadata: labels: app: {{.ObjectMeta.Name}} devstar-resource-type: devstar-devcontainer spec: containers: - name: {{.ObjectMeta.Name}} image: {{.Spec.StatefulSet.Image}} command: {{range .Spec.StatefulSet.Command}} - {{.}} {{end}} imagePullPolicy: IfNotPresent ports: - name: ssh-port protocol: TCP containerPort: {{.Spec.StatefulSet.ContainerPort}} volumeMounts: - name: pvc-devcontainer mountPath: /data livenessProbe: exec: command: - /bin/sh - -c - exec ls ~ failureThreshold: 6 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 readinessProbe: exec: command: - /bin/sh - -c - exec cat /etc/ssh/ssh_host*.pub resources: limits: cpu: 300m ephemeral-storage: 8Gi memory: 512Mi requests: cpu: 100m ephemeral-storage: 50Mi memory: 128Mi volumeClaimTemplates: - apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pvc-devcontainer spec: storageClassName: openebs-hostpath accessModes: - ReadWriteOnce resources: requests: storage: 10Gi