File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,10 @@ az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/<SUBSCRIP
226226ssh-keygen -b 4096 -t rsa -C <EMAIL_ADDRESS>
227227# note the path of the file "~/.ssh/id_rsa.pub" as <SSH_PUBLIC_KEY_FILE>
228228
229+ # to make system remember the private key passphrase:
230+ exec ssh-agent bash
231+ ssh-add
232+
229233# copy the template variable file
230234cd ~/kthw-azure-git/infra
231235cp azurerm.tfvars azurerm-secret.tfvars
Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ kubectl port-forward $pod_name 8080:80 --kubeconfig worker/configs/admin.kubecon
140140
141141# try accessing port 8080 on host in a separate terminal
142142curl 127.0.0.1:8080
143+ # if you are running this on a container then execute this instead in a new command prompt / terminal
144+ docker exec -it kthw-azure-container curl 127.0.0.1:8080
143145
144146# output should be something like this
145147<!DOCTYPE html>
Original file line number Diff line number Diff line change @@ -188,11 +188,11 @@ wget -q --show-progress --https-only --timestamping \
188188
189189# prepare etcd service systemd unit file
190190
191- # substitute the value for <HOSTNAME>
191+ # auto substitute the value for <HOSTNAME>
192192# e.g. "kthw-play-mastervm01" for mastervm01 with 'kthw' as prefix and 'play' as environmemt
193193sed -i "s|<HOSTNAME>|$(hostname -s)|g" etcd.service
194194
195- # substitute the value for <INTERNAL_IP>
195+ # auto substitute the value for <INTERNAL_IP>
196196# e.g. "10.240.0.11" for mastervm01, "10.240.0.12" for mastervm02 etc.
197197sed -i "s|<INTERNAL_IP>|$(hostname -i)|g" etcd.service
198198
@@ -279,7 +279,7 @@ wget -q --show-progress --https-only --timestamping \
279279
280280# prepare kube-apiserver service systemd unit file
281281
282- # substitute the value for <INTERNAL_IP>
282+ # auto substitute the value for <INTERNAL_IP>
283283# e.g. "10.240.0.11" for mastervm01, "10.240.0.12" for mastervm02 etc.
284284sed -i "s|<INTERNAL_IP>|$(hostname -i)|g" kube-apiserver.service
285285
You can’t perform that action at this time.
0 commit comments