forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#30870 from piosz/rescheduler-setup
Automatic merge from submit-queue Salt configuration for Rescheduler ref kubernetes#29023
- Loading branch information
Showing
11 changed files
with
83 additions
and
0 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
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
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,15 @@ | ||
/etc/kubernetes/manifests/rescheduler.manifest: | ||
file.managed: | ||
- source: salt://rescheduler/rescheduler.manifest | ||
- template: jinja | ||
- user: root | ||
- group: root | ||
- mode: 644 | ||
- makedirs: true | ||
- dir_mode: 755 | ||
|
||
/var/log/rescheduler.log: | ||
file.managed: | ||
- user: root | ||
- group: root | ||
- mode: 644 |
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,35 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: rescheduler-v0.1.0 | ||
namespace: kube-system | ||
labels: | ||
k8s-app: rescheduler | ||
version: v0.1.0 | ||
kubernetes.io/cluster-service: "true" | ||
kubernetes.io/name: "Rescheduler" | ||
spec: | ||
hostNetwork: true | ||
containers: | ||
- image: gcr.io/google_containers/rescheduler:v0.1.0 | ||
name: rescheduler | ||
volumeMounts: | ||
- mountPath: /var/log/rescheduler.log | ||
name: logfile | ||
readOnly: false | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 300Mi | ||
requests: | ||
cpu: 10m | ||
memory: 100Mi | ||
command: | ||
# TODO: split this out into args when we no longer need to pipe stdout to a file #6428 | ||
- sh | ||
- -c | ||
- '/rescheduler --running-in-cluster=false 1>>/var/log/rescheduler.log 2>&1' | ||
volumes: | ||
- hostPath: | ||
path: /var/log/rescheduler.log | ||
name: logfile |
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