From 579aff06553fe8b2201aec7f7cf21c454cb21ade Mon Sep 17 00:00:00 2001 From: Micah Galizia Date: Tue, 22 Aug 2023 20:32:46 -0400 Subject: [PATCH] try kubeconfig --- .github/workflows/deploy.yaml | 22 ++++++++-------------- README.md | 4 ++++ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6f04205..b014990 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -13,22 +13,16 @@ jobs: steps: - uses: actions/checkout@v3 - id: preflight - name: Preflight checks + name: Preflight Checks run: | ls -l /usr/local/bin which helm which kubectl - - id: kubectldl - name: Download kubectl + - id: kubeconfig + name: Kubectl Config + with: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" - echo "$(cat kubectl.sha256) kubectl" | sha256sum --check - - id: helmdl - name: Download helm - run: | - curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - - id: display - name: Display spoils - run: | - ls -lt \ No newline at end of file + if ! [ -d ~/.kube ]; then mkdir ~/.kube; fi + echo $KUBE_CONFIG | base64 -d > ~/.kube/config + sha512sum ~/.kube/config diff --git a/README.md b/README.md index 7a8d604..ce17351 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ # nttinfra + +## Microk8s + +Config generated using `microk8s config | sed "s/192.168.1.2:16443/ntt.steakholdermeating.com:47826/g" | base64`. \ No newline at end of file