Install kubectl
and other plugins
kubectl
To install kubectl
tool follow the official guide https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/ (opens in a new tab)
Verify you installation by running
kubectl --version
vsphere plugin
You will also need to download bratislava vsphere plugin, here: https://k8s.tanzu.bratislava.sk/ (opens in a new tab). Note, that you have to be connected to magistrate network.
You can download it and install it by running
wget -qO- https://k8s.tanzu.bratislava.sk/wcp/plugin/linux-amd64/vsphere-plugin.zip | tar xzv
sudo install -o root -g root -m 0755 kubectl-vsphere /usr/local/bin/kubectl-vsphere
After this you should be able to log into our kubernetes cluster. You can test and login in by following our Login guide.
kubeseal
And lastly you will also need a client side utility: kubeseal
(opens in a new tab), which you can download here https://github.com/bitnami-labs/sealed-secrets/releases (opens in a new tab) and is used to encrypt sensitive data.
You can also use following lines to download and install
wget https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.18.1/kubeseal-0.18.1-linux-$(dpkg --print-architecture).tar.gz -qO- | tar xvz
sudo install -o root -g root -m 0755 kubeseal /usr/local/bin/kubeseal
You can read more about creating secrets here.
Install bratiska-cli
If you plan on deploying to our kubernetes cluster, most likely you will need bratiska-cli
(opens in a new tab) npm package.
But first, you need to install and gain accesses to all of it's prerequisites (opens in a new tab).
Install npm
First we need to install npm (opens in a new tab). You can use following script
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
cat <<EOT >> ~/.bashrc
export NVM_DIR="${HOME}/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
EOT
source ~/.bashrc
nvm install node
Install yarn
To Install yarn
, you can use your preferred version. Here, we will follow official documentation (opens in a new tab)
npm install --global yarn
Add yarn
to your path
echo "export PATH=\"$PATH:${HOME}/.yarn/bin\"" >> ~/.bashrc
source ~/.bashrc
Install bratiska-cli
After successful installation of yarn
(to verify you can run yarn --version
) follow
bratiska-cli installation instruction (opens in a new tab). Please, verify one more time that you have met all of the required prerequisites (opens in a new tab).
Now you should have everything needed to deploy (opens in a new tab) your application through bratiska-cli
.
To login to our cluster you can follow our Login guide.