58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: birb-scheduler
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: birb-scheduler
|
||
|
spec:
|
||
|
serviceAccountName: birb-scheduler-account
|
||
|
automountServiceAccountToken: true
|
||
|
containers:
|
||
|
- name: birb-scheduler
|
||
|
image: registry.kmlabz.com/birbnetes/birb-scheduler
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: birb-scheduler-config
|
||
|
imagePullSecrets:
|
||
|
- name: regcred
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: birb-scheduler
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: birb-scheduler-config
|
||
|
data:
|
||
|
SENTRY_DSN: ""
|
||
|
SITES: "edge-1;http://192.168.111.100:30420/ edge-2;http://192.168.112.100:30420/ cloud;http://192.168.110.100:30420/"
|
||
|
DEBUG: "yes"
|
||
|
REDIS_URL: "redis://birb-scheduler-redis:6379/0"
|
||
|
COLLECTOR_URL: "http://192.168.110.100:30420/report"
|
||
|
---
|
||
|
kind: Role
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
metadata:
|
||
|
name: birb-scheduler-role
|
||
|
rules:
|
||
|
- apiGroups: ["types.kubefed.io"]
|
||
|
resources: ["federateddeployments"]
|
||
|
verbs: ["get", "list", "watch", "update", "patch"]
|
||
|
---
|
||
|
kind: RoleBinding
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
metadata:
|
||
|
name: birb-scheduler-role-binding
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: birb-scheduler-account
|
||
|
roleRef:
|
||
|
kind: Role
|
||
|
name: birb-scheduler-role
|
||
|
apiGroup: rbac.authorization.k8s.io
|