Skip to content

Commit

Permalink
try kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
micahg committed Aug 23, 2023
1 parent 0cdf5cb commit 579aff0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
if ! [ -d ~/.kube ]; then mkdir ~/.kube; fi
echo $KUBE_CONFIG | base64 -d > ~/.kube/config
sha512sum ~/.kube/config
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# nttinfra

## Microk8s

Config generated using `microk8s config | sed "s/192.168.1.2:16443/ntt.steakholdermeating.com:47826/g" | base64`.

0 comments on commit 579aff0

Please sign in to comment.