Created
May 3, 2019 15:27
-
-
Save gauravgola96/fe604cc6a5f146043688959a23dc0a17 to your computer and use it in GitHub Desktop.
kube8-cluster-autoscaling
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: cluster-autoscaler | |
labels: | |
app: cluster-autoscaler | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: cluster-autoscaler | |
template: | |
metadata: | |
labels: | |
app: cluster-autoscaler | |
spec: | |
containers: | |
- image: gcr.io/google_containers/cluster-autoscaler:v0.4.0 | |
name: cluster-autoscaler | |
resources: | |
limits: | |
cpu: 100m | |
memory: 300Mi | |
requests: | |
cpu: 100m | |
memory: 300Mi | |
command: | |
- ./cluster-autoscaler | |
- --v=4 | |
- --cloud-provider=aws | |
- --skip-nodes-with-local-storage=false | |
- --nodes=5:8:nodes-us-east-2a.aml-infra-3.thefynd.net | |
env: | |
- name: AWS_REGION | |
value: us-east-2a | |
volumeMounts: | |
- name: ssl-certs | |
mountPath: /etc/ssl/certs/ca-certificates.crt | |
readOnly: true | |
imagePullPolicy: "Always" | |
volumes: | |
- name: ssl-certs | |
hostPath: | |
path: "/etc/ssl/certs/ca-certificates.crt" | |
#kubectl create -f cluster-autoscaler.yaml -n mlhub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment