Skip to content

Commit b6a4825

Browse files
committed
Documentation
1 parent 0dbfcc3 commit b6a4825

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

infra/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/<SUBSCRIP
226226
ssh-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
230234
cd ~/kthw-azure-git/infra
231235
cp azurerm.tfvars azurerm-secret.tfvars

scripts/deployments/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
142142
curl 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>

scripts/master/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
193193
sed -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.
197197
sed -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.
284284
sed -i "s|<INTERNAL_IP>|$(hostname -i)|g" kube-apiserver.service
285285

0 commit comments

Comments
 (0)