-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
erkan
committed
Jul 30, 2020
1 parent
7f7130c
commit ed18347
Showing
12 changed files
with
176 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# | ||
|
||
Bitte den Token für Hetzner in terraform.tfvars setzen. | ||
In der maion.tf wird ein ssh-key referenziert, welches auf ein/das eigene SSH-Key verweisen soll. | ||
|
||
Dann folgende Befehle (oder cluster-create.sh) ausführen. | ||
|
||
|
||
~~~ | ||
terraform apply | ||
bash state-extractor.sh | ||
ansible-playbook -i ini -e 'ansible_python_interpreter=/usr/bin/python3' -u root all.yml | ||
~~~ | ||
|
||
CNI: | ||
|
||
In group_vars/all kann | ||
cni: calico | ||
oder | ||
cni: weave | ||
gesetzt werden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Install: | ||
https://github.com/ahmetb/kubectx | ||
und fzf für kubectx/kubedns (https://github.com/junegunn/fzf) | ||
vim als Defaulteditor | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- include: user-play.yml | ||
- include: nodes-play.yml | ||
- include: master-init.yml | ||
- include: nodes-join.yml | ||
- import_playbook: user-play.yml | ||
- import_playbook: nodes-play.yml | ||
- import_playbook: master-play.yml | ||
- import_playbook: master-init.yml | ||
- import_playbook: nodes-join.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
user: e2m | ||
password: dc201711 | ||
user: k8suser | ||
password: KrassesPasswort4711 | ||
cni: calico | ||
#cni: weave |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
# export DO_API_TOKEN= | ||
# cat terraform.tfstate | jq '.modules[].resources[].primary.attributes | { ipv4_address, name}' | ||
# cat terraform.tfstate | jq --raw-output '.modules[].resources[].primary.attributes | { ipv4_address, name}| .[]' | ||
echo '[master]' >ini | ||
cat terraform.tfstate | jq --raw-output '.modules[].resources[].primary.attributes | { ipv4_address }| .[]' | head -n 1 >>ini | ||
echo '[nodes]' >>ini | ||
cat terraform.tfstate | jq --raw-output '.modules[].resources[].primary.attributes | { ipv4_address }| .[]' | tail -n +2 >>ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
- hosts: master | ||
tasks: | ||
- name: download helm | ||
unarchive: | ||
src: https://get.helm.sh/helm-v3.1.1-linux-amd64.tar.gz | ||
dest: /usr/local/bin | ||
remote_src: yes | ||
extra_opts: [--strip-components=1] | ||
- name: download istioctl | ||
unarchive: | ||
src: https://github.com/istio/istio/releases/download/1.6.4/istioctl-1.6.4-linux-amd64.tar.gz | ||
dest: /usr/local/bin | ||
remote_src: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters