代码拉取完成,页面将自动刷新
同步操作将从 Carina/carina 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: carina-scheduler-clusterrole
rules:
- apiGroups: [""]
resources: ["endpoints", "events"]
verbs: ["create", "get", "update"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["delete", "get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["bindings", "pods/binding"]
verbs: ["create"]
- apiGroups: [""]
resources: ["pods/status"]
verbs: ["patch", "update"]
- apiGroups: [""]
resources: ["replicationcontrollers", "services"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apps", "extensions"]
resources: ["replicasets"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
resources: ["statefulsets"]
verbs: ["get", "list", "watch"]
- apiGroups: ["policy"]
resources: ["poddisruptionbudgets"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims", "persistentvolumes"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses", "csinodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["create", "get", "list", "update"]
- apiGroups: ["events.k8s.io"]
resources: ["events"]
verbs: ["create", "patch", "update"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: carina-scheduler-sa
namespace: kube-system
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: carina-scheduler-clusterrolebinding
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: carina-scheduler-clusterrole
subjects:
- kind: ServiceAccount
name: carina-scheduler-sa
namespace: kube-system
---
apiVersion: v1
kind: ConfigMap
metadata:
name: carina-scheduler-config
namespace: kube-system
data:
scheduler-config.yaml: |-
apiVersion: kubescheduler.config.k8s.io/v1beta1
kind: KubeSchedulerConfiguration
leaderElection:
leaderElect: true
resourceName: carina-scheduler
resourceNamespace: kube-system
profiles:
- schedulerName: carina-scheduler
plugins:
filter:
enabled:
- name: "local-storage"
weight: 1
score:
enabled:
- name: "local-storage"
weight: 1
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: carina-scheduler
namespace: kube-system
labels:
component: carina-scheduler
spec:
replicas: 1
selector:
matchLabels:
component: carina-scheduler
template:
metadata:
labels:
component: carina-scheduler
spec:
serviceAccount: carina-scheduler-sa
priorityClassName: system-cluster-critical
containers:
- name: carina-scheduler
image: registry.cn-hangzhou.aliyuncs.com/antmoveh/scheduler:latest
imagePullPolicy: "Always"
command: ["carina-scheduler"]
args:
- --config=/etc/kube/scheduler-config.yaml
- --v=3
resources:
requests:
cpu: "50m"
volumeMounts:
- name: scheduler-config
mountPath: /etc/kube/
- name: config
mountPath: /etc/carina/
volumes:
- name: scheduler-config
configMap:
name: carina-scheduler-config
- name: config
configMap:
name: carina-csi-config
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。