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