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
#!/bin/bash | |
# resource that will help you setup mutli-cluster configuration : https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html | |
read -r -d '' KUBECONFIG <<EOF | |
apiVersion: v1 | |
clusters: | |
- cluster: | |
certificate-authority-data: $certificate_data | |
server: $cluster_endpoint | |
name: arn:aws:eks:$region_code:$account_id:cluster/$cluster_name |
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
# Add Docker's official GPG key: | |
sudo apt-get update -y | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt update -y | |
apt-cache madison docker-ce | |
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y |
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
apiVersion: v1 | |
data: | |
context: | | |
# this can be changed anytime, developers must portforward argocd server service | |
# using the following command | |
# kubectl port-forward -n argocd svc/argocd-server 2323:80 | |
argocdUrl: http://localhost:2323 | |
environment: Developement | |
environmentShortName: dev | |
service.slack: | |