An open API service indexing awesome lists of open source software.

https://github.com/slashnephy/infrastructure

Infrastructure as Code that are running at my home!
https://github.com/slashnephy/infrastructure

cloudflare gitops infrastructure-as-code kubernetes terraform

Last synced: 3 months ago
JSON representation

Infrastructure as Code that are running at my home!

Awesome Lists containing this project

README

          

# infrastructure

- k8s
- [/slashnephy/k8s](https://scrapbox.io/slashnephy/k8s)
- terraform
- Managed with Terraform Cloud

## Setup k8s Cluster

Ensure the contents of `1password-credentials.json` are Base64-encoded before applying the manifest.

```console
$ kubectl kustomize --enable-helm k8s/init/${ENV_NAME} | kubectl apply -f -
```

## Useful Commands

- Generate long-lived bearer token for kubernetes-dashboard

```console
$ kubectl create token admin-user -n kubernetes-dashboard --duration=4294967296s
```

- Obtain Argo CD initial password

```console
$ kubectl get secret argocd-initial-admin-secret \
-n argo-cd \
-o jsonpath="{.data.password}" | base64 -d; echo
```

- Format / Lint manifest files

```console
$ yarn format
$ yarn lint
```