This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: web-ping-operator
labels:
kiamol: ch20
automountServiceAccountToken: false
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: web-ping-operator
labels:
kiamol: ch20
rules:
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["list", "create"]
- apiGroups: ["ch20.kiamol.net"]
resources: ["webpingers", "webpingerarchives"]
verbs: ["list", "watch"]
- apiGroups: [""]
resources: ["services", "configmaps"]
verbs: ["list", "create", "delete"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["list", "create", "delete"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["list", "create", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: web-ping-operator
labels:
kiamol: ch20
subjects:
- kind: ServiceAccount
name: web-ping-operator
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: web-ping-operator

View File

@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-ping-operator
labels:
kiamol: ch20
spec:
selector:
matchLabels:
app: web-ping-operator
template:
metadata:
labels:
app: web-ping-operator
spec:
serviceAccountName: web-ping-operator
automountServiceAccountToken: true
initContainers:
- name: installer
image: kiamol/ch20-wpo-installer
containers:
- name: pinger-controller
image: kiamol/ch20-wpo-pinger-controller
- name: archive-controller
image: kiamol/ch20-wpo-archive-controller