Kubernetes Scheduler 你不得不知道的事

2023年 7月 9日 27.8k 0

apiVersion: apps/v1beta1
kind: Deployment
metadata:
labels:
component: scheduler
tier: control-plane
name: yrcloudflie-scheduler
namespace: yanrongyun
initializers:
pending: []spec:
replicas: 3
template:
metadata:
labels:
component: scheduler
tier: control-plane
name: yrcloudflie-scheduler
spec:
containers:
– command:
– /usr/local/bin/kube-scheduler
– –address=0.0.0.0
– –leader-elect=true
– –scheduler-name=yrcloudfile-scheduler
– –policy-configmap=yrcloudfile-scheduler-config
– –policy-configmap-namespace=yanrongyun
– –lock-object-name=yrcloudfile-scheduler
image: k8s.gcr.io/kube-scheduler:v1.13.0
livenessProbe:
httpGet:
path: /healthz
port: 10251
initialDelaySeconds: 15
name: yrcloudflie-scheduler
readinessProbe:
httpGet:
path: /healthz
port: 10251
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
– labelSelector:
matchExpressions:
– key: “name”
operator: In
values:
– yrcloudflie-scheduler
topologyKey: “kubernetes.io/hostname”
hostPID: false
serviceAccountName: yrcloudflie-scheduler-account

相关文章

KubeSphere 部署向量数据库 Milvus 实战指南
探索 Kubernetes 持久化存储之 Longhorn 初窥门径
征服 Docker 镜像访问限制!KubeSphere v3.4.1 成功部署全攻略
那些年在 Terraform 上吃到的糖和踩过的坑
无需 Kubernetes 测试 Kubernetes 网络实现
Kubernetes v1.31 中的移除和主要变更

发布评论