apiVersion: apps/v1
kind: Deployment
metadata:
  name: github-runner
  labels:
    app: github-runner
spec:
  replicas: 3
  selector:
    matchLabels:
      app: github-runner
  template:
    metadata:
      labels:
        app: github-runner
    spec:
      containers:
        - name: github-runner
          image: mraarif/gha-self-hosted-runner:latest
          env:
            - name: GITHUB_OWNER
              value: your-organization
            - name: GITHUB_REPOSITORY
              value: your-repository
            - name: GITHUB_PAT # stored separately in a Kubernetes Secret
              valueFrom:
                secretKeyRef:
                  name: my-secret
                  key: pat
