birb-scheduler/k8s/scheduler.yml

68 lines
1.6 KiB
YAML
Raw Normal View History

2021-12-13 04:17:24 +01:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: birb-scheduler
2021-12-13 04:20:12 +01:00
namespace: turbomemer
2021-12-13 04:17:24 +01:00
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
2021-12-13 04:20:12 +01:00
namespace: turbomemer
2021-12-13 04:17:24 +01:00
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"
2021-12-13 04:39:42 +01:00
COLLECTOR_URL: "http://birb-latency-collector/report/"
2021-12-13 04:17:24 +01:00
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: birb-scheduler-role
2021-12-13 04:20:12 +01:00
namespace: turbomemer
2021-12-13 04:17:24 +01:00
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
2021-12-13 04:20:12 +01:00
namespace: turbomemer
2021-12-13 04:17:24 +01:00
subjects:
- kind: ServiceAccount
name: birb-scheduler-account
roleRef:
kind: Role
name: birb-scheduler-role
apiGroup: rbac.authorization.k8s.io
2021-12-13 04:28:03 +01:00
---
apiVersion: v1
kind: ServiceAccount
metadata:
2021-12-13 04:29:13 +01:00
name: birb-scheduler-account
namespace: turbomemer