-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install Descheduler, fix startup readywait
Descheduler will be used for eve-app rebalancing during cluster node reboots/upgrades in an upcoming PR. Wait for longhorn daemonsets to be ready, before upcoming PR to snapshot single-node /var/lib kube db. Resolve sometimes failure to import external-boot-image Wait for containerd before importing. Tighter error checking on import. Signed-off-by: Andrew Durbin <[email protected]>
- Loading branch information
1 parent
1d2ad7a
commit 7748d16
Showing
5 changed files
with
137 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
# from: https://raw.githubusercontent.com/kubernetes-sigs/descheduler/${DESCHEDULER_VERSION}/kubernetes/job/job.yaml | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: descheduler-job | ||
namespace: kube-system | ||
spec: | ||
parallelism: 1 | ||
completions: 1 | ||
template: | ||
metadata: | ||
name: descheduler-pod | ||
spec: | ||
priorityClassName: system-cluster-critical | ||
containers: | ||
- name: descheduler | ||
image: registry.k8s.io/descheduler/descheduler:v0.29.0 | ||
volumeMounts: | ||
- mountPath: /policy-dir | ||
name: policy-volume | ||
command: | ||
- "/bin/descheduler" | ||
args: | ||
- "--policy-config-file" | ||
- "/policy-dir/policy.yaml" | ||
- "--v" | ||
- "3" | ||
resources: | ||
requests: | ||
cpu: "500m" | ||
memory: "256Mi" | ||
livenessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /healthz | ||
port: 10258 | ||
scheme: HTTPS | ||
initialDelaySeconds: 3 | ||
periodSeconds: 10 | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
privileged: false | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
restartPolicy: "Never" | ||
serviceAccountName: descheduler-sa | ||
volumes: | ||
- name: policy-volume | ||
configMap: | ||
name: descheduler-policy-configmap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: descheduler-policy-configmap | ||
namespace: kube-system | ||
data: | ||
policy.yaml: | | ||
apiVersion: "descheduler/v1alpha2" | ||
kind: "DeschedulerPolicy" | ||
profiles: | ||
- name: ProfileName | ||
pluginConfig: | ||
- name: "RemovePodsViolatingNodeAffinity" | ||
args: | ||
namespaces: | ||
include: | ||
- "eve-kube-app" | ||
nodeAffinityType: | ||
- "preferredDuringSchedulingIgnoredDuringExecution" | ||
plugins: | ||
deschedule: | ||
enabled: | ||
- "RemovePodsViolatingNodeAffinity" |