apiVersion: apps/v1
kind: Deployment
metadata:
  name: github-actions-runner
spec:
  replicas: 1
  selector:
    matchLabels:
      app: github-actions-runner
  template:
    metadata:
      labels:
        app: github-actions-runner
    spec:
      volumes:
      - name: dockersock
        hostPath:
          path: /var/run
      serviceAccountName: internal-kubectl
      containers:
        - image: localhost:32000/actions-runner:latest
          imagePullPolicy: Always
          name: actions-runner
          volumeMounts:
          - name: dockersock
            mountPath: /var/run