# Depends on feature gate UserNamespacesSupport
apiVersion: v1
kind: Pod
metadata:
  name: buildkitd
spec:
  hostUsers: false
  containers:
    - name: buildkitd
      image: moby/buildkit:master
      readinessProbe:
        exec:
          command:
            - buildctl
            - debug
            - workers
        initialDelaySeconds: 5
        periodSeconds: 30
      livenessProbe:
        exec:
          command:
            - buildctl
            - debug
            - workers
        initialDelaySeconds: 5
        periodSeconds: 30
      securityContext:
        # Not really privileged
        privileged: true
