File tree 3 files changed +27
-2
lines changed
3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
- * appsec 0.1.1 - 2024-03-07: integration of Lets encrypt cluster issuer
1
+ 2024-03-07:
2
+ * appsec 0.1.1 - integration of Lets encrypt cluster issuer
3
+ * cloud-init improvements:
4
+ * membership in microk8s group
5
+ * user profile setup - aliases for helm and kubectl
6
+ * VM provisioning - added ` sshvm ` command to simplify login to new VM
Original file line number Diff line number Diff line change @@ -17,4 +17,20 @@ packages:
17
17
- jq
18
18
- curl
19
19
- git
20
- - vim
20
+ - vim
21
+
22
+ system_info :
23
+ default_user :
24
+ groups : [microk8s]
25
+
26
+ write_files :
27
+ - path : /home/azureuser/.bash_aliases
28
+ content : |
29
+ alias kubectl='microk8s kubectl'
30
+ alias helm='microk8s helm'
31
+ alias k='kubectl'
32
+ alias h='helm'
33
+ owner : ' azureuser:azureuser'
34
+ permissions : ' 0644'
35
+
36
+ final_message : " The system is finally up, after $UPTIME seconds"
Original file line number Diff line number Diff line change @@ -37,3 +37,7 @@ az vm extension set \
37
37
38
38
export IP_ADDRESS=$( az vm show --show-details --resource-group $MY_RESOURCE_GROUP_NAME --name $MY_VM_NAME --query publicIps --output tsv)
39
39
40
+ alias sshvm=" ssh -o StrictHostKeyChecking=no $MY_USERNAME @$IP_ADDRESS "
41
+
42
+ echo
43
+ echo " VM created. You can now connect to it using 'sshvm' command"
You can’t perform that action at this time.
0 commit comments