refactor: Update Traefik ingress routes file paths

This commit is contained in:
2024-08-18 07:38:16 +08:00
parent 2da4bdc13e
commit 820191346b
10 changed files with 530 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cleanup-service-account
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cleanup-admin
subjects:
- kind: ServiceAccount
name: cleanup-service-account
namespace: kube-system
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
---
apiVersion: batch/v1
kind: Job
metadata:
name: verify-job
namespace: kube-system
labels:
app: verify
spec:
template:
spec:
containers:
- name: verify
image: rancher/rancher-cleanup:latest
command: [ "verify.sh" ]
imagePullPolicy: Always
serviceAccountName: cleanup-service-account
restartPolicy: Never
backoffLimit: 0