--- apiVersion: gitjob.cattle.io/v1 kind: GitJob metadata: name: example-webhook namespace: default spec: git: branch: master repo: https://github.com/StrongMonkey/gitjobs-example jobSpec: template: spec: serviceAccountName: kubectl-apply restartPolicy: "Never" containers: - image: "bitnami/kubectl:latest" name: kubectl-apply command: - kubectl args: - apply - -f - deployment.yaml workingDir: /workspace/source --- apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: webhook-ingress namespace: gitjob spec: rules: - host: daishan.do.rancher.space http: paths: - path: / pathType: Prefix backend: serviceName: gitjob servicePort: 80