Skip to content

Instantly share code, notes, and snippets.

@wbuchwalter
Last active August 8, 2017 21:18
Show Gist options
  • Select an option

  • Save wbuchwalter/18c6bbe2f07c07a4855d9b8c8f8150ff to your computer and use it in GitHub Desktop.

Select an option

Save wbuchwalter/18c6bbe2f07c07a4855d9b8c8f8150ff to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: autoscaler
spec:
replicas: 1
template:
metadata:
labels:
app: autoscaler
openai/do-not-drain: "true"
spec:
containers:
- name: autoscaler
image: wbuchwalter/kubernetes-acs-engine-autoscaler:2.0.0
env:
- name: AZURE_SP_APP_ID
valueFrom:
secretKeyRef:
name: autoscaler
key: azure-sp-app-id
- name: AZURE_SP_SECRET
valueFrom:
secretKeyRef:
name: autoscaler
key: azure-sp-secret
- name: AZURE_SP_TENANT_ID
valueFrom:
secretKeyRef:
name: autoscaler
key: azure-sp-tenant-id
- name: KUBECONFIG_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: autoscaler
key: kubeconfig-private-key
- name: CLIENT_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: autoscaler
key: client-private-key
- name: CA_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: autoscaler
key: ca-private-key
command:
- python
- main.py
- --resource-group
- <your-group-name>
- -vvv
imagePullPolicy: Always
restartPolicy: Always
dnsPolicy: Default # Don't use cluster DNS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment