Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 95d7068

Browse files
dtzarrguthriemsft
authored andcommitted
Update to k8s 1.13, helm 2.14 (#300)
* k8s to 1.13.5 * Bump Helm 2.14.1 * Bump az cli version * --mount to -v * Fix readme * --mount to -v * echo ingress IP prior to creating FW rule. * Fix volume mount syntax
1 parent fb519b0 commit 95d7068

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

provision-team/configure_sql.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,15 @@ STAGE_INGRESS_IP=$(kubectl get svc team-ingress-stage-traefik -o jsonpath='{.sta
8080
# Get the name of the SQL server
8181
sqlServer=$(az keyvault secret show --vault-name $keyVaultName --name sqlServerName -o tsv --query value)
8282

83+
echo -e "\n\nAdding SQL Server Firewall rule to allow $INGRESS_IP."
84+
8385
# Add firewall rule to allow APIs to connect to SQL server database
8486
az sql server firewall-rule create -n allow-k8s-ingress -g $resourceGroupName -s $sqlServer --start-ip-address $INGRESS_IP --end-ip-address $INGRESS_IP
8587

8688
echo -e "\n\nSQL Server Firewall rule added to allow $INGRESS_IP."
8789

90+
echo -e "\n\nAdding SQL Server Firewall rule to allow staging $STAGE_INGRESS_IP."
91+
8892
# Add firewall rule to allow staging APIs to connect to SQL server database
8993
az sql server firewall-rule create -n allow-k8s-ingress-stage -g $resourceGroupName -s $sqlServer --start-ip-address $STAGE_INGRESS_IP --end-ip-address $STAGE_INGRESS_IP
9094

provision-team/jenkins/install_jenkins.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -485,19 +485,19 @@ sudo service jenkins restart
485485
retry_until_successful run_util_script "jenkins/run-cli-command.sh" -c "version"
486486

487487
echo "############### Installing Packages ###############"
488-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y jq git zip azure-cli=2.0.49-1~xenial
488+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y jq git zip azure-cli=2.0.66-1~xenial
489489
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce
490490

491491
# Kubectl
492492
echo "############### Installing kubectl ###############"
493-
curl -s -LO https://storage.googleapis.com/kubernetes-release/release/v1.11.8/bin/linux/amd64/kubectl
493+
curl -s -LO https://storage.googleapis.com/kubernetes-release/release/v1.13.7/bin/linux/amd64/kubectl
494494
chmod +x ./kubectl
495495
sudo mv ./kubectl /usr/local/bin/kubectl
496496

497-
# Helm v2.11.0
498-
echo "############### Installing Helm v2.11.0 ###############"
499-
sudo curl -s -O https://storage.googleapis.com/kubernetes-helm/helm-v2.11.0-linux-amd64.tar.gz
500-
sudo tar -zxvf helm-v2.11.0-linux-amd64.tar.gz
497+
# Helm v2.14.1
498+
echo "############### Installing Helm v2.14.1 ###############"
499+
sudo curl -s -O https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz
500+
sudo tar -zxvf helm-v2.14.1-linux-amd64.tar.gz
501501
sudo mv linux-amd64/helm /usr/local/bin/helm
502502

503503
# Configure accessusermod -aG docker azureuser

provision-team/provision_aks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fi
129129
echo "Creating AKS Cluster..."
130130
(
131131
set -x
132-
az aks create -g $resourceGroupName -n $clusterName -l $resourceGroupLocation --node-count 3 --generate-ssh-keys -k 1.11.8 --service-principal $SP_ID --client-secret $SP_PASS
132+
az aks create -g $resourceGroupName -n $clusterName -l $resourceGroupLocation --node-count 3 --generate-ssh-keys -k 1.13.5 --service-principal $SP_ID --client-secret $SP_PASS
133133
)
134134

135135
if [ $? == 0 ];

provision-vm/Docker/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ RUN add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/ubuntu/1
2626
# Add Docker source
2727
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
2828

29-
############### Installing Helm v2.12.3 ###############
30-
RUN curl -s -O https://storage.googleapis.com/kubernetes-helm/helm-v2.12.3-linux-amd64.tar.gz
31-
RUN tar -zxvf helm-v2.12.3-linux-amd64.tar.gz
29+
############### Installing Helm v2.14.1 ###############
30+
RUN curl -s -O https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz
31+
RUN tar -zxvf helm-v2.14.1-linux-amd64.tar.gz
3232
RUN mv linux-amd64/helm /usr/local/bin/helm
3333

3434
############### Installing kubectl ###############
35-
RUN curl -s -LO https://storage.googleapis.com/kubernetes-release/release/v1.11.8/bin/linux/amd64/kubectl
35+
RUN curl -s -LO https://storage.googleapis.com/kubernetes-release/release/v1.13.7/bin/linux/amd64/kubectl
3636
RUN chmod +x ./kubectl
3737
RUN mv ./kubectl /usr/local/bin/kubectl
3838

3939
############### Installing Packages ###############
4040

4141
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https
4242
RUN DEBIAN_FRONTEND=noninteractive apt-get update
43-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y dotnet-sdk-2.2 jq git zip azure-cli=2.0.49-1~xenial
43+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y dotnet-sdk-2.2 jq git zip azure-cli=2.0.66-1~xenial
4444
RUN DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
4545
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce
4646
RUN DEBIAN_FRONTEND=noninteractive apt-get install vim -y

provision-vm/Docker/Readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For getting started, create a docker daemon using the docker image. For experime
88
If you want to run the container locally:
99

1010
```
11-
$ docker run --mount '"'"'type=bind,src=/home/nginx/config,dst=/home/nginx/config'"'"' --mount '"'"'type=bind,src=/home/nginx/contents,dst=/home/nginx/contents'"'"' --mount '"'"'type=bind,src=/home/azureuser/logs,dst=/home/azureuser/logs'"'"' -v /var/run/docker.sock:/var/run/docker.sock -d -e AZUREUSERNAME -e AZUREPASSWORD -e SUBID -e LOCATION -e TEAMNAME -e RECIPIENTEMAIL -e CHATCONNECTIONSTRING -e CHATMESSAGEQUEUE -e TENANTID -e APPID devopsoh/proctor-container
11+
$ docker run -v '"'"'type=bind,src=/home/nginx/config,dst=/home/nginx/config'"'"' -v '"'"'type=bind,src=/home/nginx/contents,dst=/home/nginx/contents'"'"' -v '"'"'type=bind,src=/home/azureuser/logs,dst=/home/azureuser/logs'"'"' -v /var/run/docker.sock:/var/run/docker.sock -d -e AZUREUSERNAME -e AZUREPASSWORD -e SUBID -e LOCATION -e TEAMNAME -e RECIPIENTEMAIL -e CHATCONNECTIONSTRING -e CHATMESSAGEQUEUE -e TENANTID -e APPID devopsoh/proctor-container
1212
root@531ed021c2c5:/home/azureuser# export AZUREUSERNAME=YOUR_SERVICE_PRINICPAL_NAME
1313
root@531ed021c2c5:/home/azureuser# export AZUREPASSWORD=YOUR_SERVICE_PRINICPAL_PASSWORD
1414
root@531ed021c2c5:/home/azureuser# export SUBID=YOUR_SUBSCRIPTION_ID
@@ -19,6 +19,7 @@ root@531ed021c2c5:/home/azureuser# export CHATCONNECTIONSTRING=null
1919
root@531ed021c2c5:/home/azureuser# export CHATMESSAGEQUEUE=null
2020
root@531ed021c2c5:/home/azureuser# export TENANTID=YOUR_TENANT_ID
2121
root@531ed021c2c5:/home/azureuser# export APPID=YOUR_SERVICE_PRINICPAL_APP_ID
22+
root@531ed021c2c5:/home/azureuser# export GITBRANCH=master
2223
root@531ed021c2c5:/home/azureuser# chmod +x ./startup.sh
23-
root@531ed021c2c5:/home/azureuser# ./start.sh
24+
root@531ed021c2c5:/home/azureuser# ./startup.sh
2425
```

provision-vm/proctorVMSetup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ mkdir -p /home/nginx/contents
7676
mkdir -p /home/azureuser/logs
7777

7878
# /bin/bash -c 'docker run -d --name docker-daemon --privileged docker:stable-dind &'
79-
/bin/bash -c 'docker run -v '"'"'type=bind,src=/home/nginx/config,dst=/home/nginx/config'"'"' --mount '"'"'type=bind,src=/home/nginx/contents,dst=/home/nginx/contents'"'"' --mount '"'"'type=bind,src=/home/azureuser/logs,dst=/home/azureuser/logs'"'"' -v /var/run/docker.sock:/var/run/docker.sock -d -e AZUREUSERNAME -e AZUREPASSWORD -e SUBID -e LOCATION -e TEAMNAME -e RECIPIENTEMAIL -e CHATCONNECTIONSTRING -e CHATMESSAGEQUEUE -e TENANTID -e APPID -e GITBRANCH devopsoh/proctor-container &'
79+
/bin/bash -c 'docker run -v /home/nginx/config:/home/nginx/config -v /home/nginx/contents:/home/nginx/contents -v /home/azureuser/logs:/home/azureuser/logs -v /var/run/docker.sock:/var/run/docker.sock -d -e AZUREUSERNAME -e AZUREPASSWORD -e SUBID -e LOCATION -e TEAMNAME -e RECIPIENTEMAIL -e CHATCONNECTIONSTRING -e CHATMESSAGEQUEUE -e TENANTID -e APPID -e GITBRANCH devopsoh/proctor-container &'
8080
#echo "############### End of custom script ###############"

0 commit comments

Comments
 (0)