Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/operation_pluto_deprecated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
tar xf pluto_3.0.1_linux_amd64.tar.gz
rm -rf pluto_3.0.1_linux_amd64.tar.gz
mv pluto $GITHUB_WORKSPACE/bin/pluto
echo "::add-path::$GITHUB_WORKSPACE/bin"
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
chmod +x $GITHUB_WORKSPACE/bin/pluto

- name: Run pluto on playbooks folder
Expand Down
28 changes: 15 additions & 13 deletions docs/PrepareBastionTool.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,32 @@ The kubeconfig file should look like below.
```yml
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1...
server: https://scalar-k8s-c1eae570.fdc2c430-cd60-4952-b269-28d1c1583ca7.privatelink.eastus.azmk8s.io:443
name: scalar-kubernetes
- cluster:
certificate-authority-data: LS0tLS1...
server: https://scalar-k8s-c1eae570.fdc2c430-cd60-4952-b269-28d1c1583ca7.privatelink.eastus.azmk8s.io:443
name: scalar-kubernetes
contexts:
- context:
cluster: scalar-kubernetes
user: clusterUser_exemple-k8s-azure-znmhbo_scalar-kubernetes
name: scalar-kubernetes
- context:
cluster: scalar-kubernetes
user: clusterUser_exemple-k8s-azure-znmhbo_scalar-kubernetes
name: scalar-kubernetes
current-context: scalar-kubernetes
kind: Config
preferences: {}
users:
- name: clusterUser_exemple-k8s-azure-znmhbo_scalar-kubernetes
user:
client-certificate-data: LS0tLS1C....
client-key-data: LS0tLS...
token: 48fdda...
- name: clusterUser_exemple-k8s-azure-znmhbo_scalar-kubernetes
user:
client-certificate-data: LS0tLS1C....
client-key-data: LS0tLS...
token: 48fdda...
```

## Install tools in the bastion

Now let's install the tools in the bastion as follows.

Note: When using Amazon EKS, you need to add `-e "install_awscli=true"` option to install `awscli` for cluster authentication.

```console
$ cd ${SCALAR_K8S_HOME}
$ ansible-playbook -i ${SCALAR_K8S_CONFIG_DIR}/inventory.ini playbooks/playbook-install-tools.yml
Expand Down
2 changes: 2 additions & 0 deletions playbooks/playbook-install-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@
roles:
- kubectl
- helm
- role: awscli
when: install_awscli | default(False) | bool
tags:
- tools
6 changes: 6 additions & 0 deletions playbooks/roles/awscli/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Install awscli
pip:
name: awscli
state: present
executable: pip3