--- apiVersion: apps/v1 kind: Deployment metadata: name: birb-scheduler namespace: turbomemer 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 namespace: turbomemer 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://birb-latency-collector/report/" --- kind: ClusterRole 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: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: birb-scheduler-role-binding namespace: turbomemer subjects: - kind: ServiceAccount name: birb-scheduler-account namespace: turbomemer roleRef: kind: ClusterRole name: birb-scheduler-role apiGroup: rbac.authorization.k8s.io --- apiVersion: v1 kind: ServiceAccount metadata: name: birb-scheduler-account namespace: turbomemer