Skip to content

Commit 892e138

Browse files
committed
ADD Guide file and updates into labs
1 parent 2fc27f0 commit 892e138

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

labs/kubeadm-cluster/Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Vagrant.configure("2") do |config|
66
echo "10.0.0.11 node01" >> /etc/hosts
77
echo "10.0.0.12 node02" >> /etc/hosts
88
SHELL
9-
9+
config.vm.synced_folder ".", "/vagrant"
1010
config.vm.define "control-plane", primary: true do |master|
1111
master.vm.box = "bento/ubuntu-18.04"
1212
master.vm.hostname = "control-plane"

labs/kubeadm-cluster/apps/islamabad-app/islamabad-app.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ metadata:
1313
labels:
1414
app: islamabad-app
1515
spec:
16+
replicas: 0
1617
selector:
1718
matchLabels:
1819
app: islamabad-app
@@ -25,7 +26,7 @@ spec:
2526
- image: nginx
2627
name: nginx
2728
ports:
28-
- containerPort: 8080
29+
- containerPort: 80
2930
---
3031
apiVersion: v1
3132
data:
@@ -44,6 +45,7 @@ metadata:
4445
labels:
4546
app: postgres
4647
spec:
48+
replicas: 0
4749
selector:
4850
matchLabels:
4951
app: postgres-db

labs/kubeadm-cluster/scripts/cp.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ subjects:
7373
namespace: kubernetes-dashboard
7474
EOF
7575

76+
77+
cd /tmp/ && wget -q https://github.com/etcd-io/etcd/releases/download/v3.4.16/etcd-v3.4.16-linux-amd64.tar.gz
78+
tar zxvf etcd-v3.4.16-linux-amd64.tar.gz
79+
cd etcd-v3.4.16-linux-amd64
80+
sudo cp etcdctl /usr/local/bin
81+
7682
kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}" >> /vagrant/configs/token
7783

7884
sudo -i -u vagrant bash << EOF

0 commit comments

Comments
 (0)