Skip to content

Commit

Permalink
Add Azure support.
Browse files Browse the repository at this point in the history
  • Loading branch information
camilb committed Nov 19, 2017
1 parent e05cc2a commit 22c3df9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion deploy
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ kctl() {
#Cloud Provider
PS3="${GREEN_PS3}Please select your cloud provider:"

options=("AWS" "GCP")
options=("AWS" "GCP" "Azure")
select opt in "${options[@]}"
do
tput sgr0
Expand Down Expand Up @@ -77,6 +77,15 @@ do
sed -i -e 's,STORAGE_CLASS_TYPE,'"$STORAGE_CLASS_TYPE"',g' manifests/prometheus/prometheus-k8s.yaml;
break
;;
"Azure")
echo "Deploying on Azure"
STORAGE_CLASS_PROVISIONER=kubernetes.io/azure-disk
STORAGE_CLASS_TYPE=Managed
sed -i -e 's,type,'kind',g' manifests/prometheus/prometheus-k8s.yaml;
sed -i -e 's,STORAGE_CLASS_PROVISIONER,'"$STORAGE_CLASS_PROVISIONER"',g' manifests/prometheus/prometheus-k8s.yaml;
sed -i -e 's,STORAGE_CLASS_TYPE,'"$STORAGE_CLASS_TYPE"',g' manifests/prometheus/prometheus-k8s.yaml;
break
;;
*) echo invalid option;;
esac
done
Expand Down
2 changes: 2 additions & 0 deletions manifests/prometheus/prometheus-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ssd
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
provisioner: STORAGE_CLASS_PROVISIONER
parameters:
type: STORAGE_CLASS_TYPE
Expand Down

0 comments on commit 22c3df9

Please sign in to comment.