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!
- Host: GitHub
- URL: https://github.com/slashnephy/infrastructure
- Owner: SlashNephy
- Created: 2022-12-26T07:55:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-08-25T16:27:24.000Z (5 months ago)
- Last Synced: 2025-08-25T17:35:21.855Z (5 months ago)
- Topics: cloudflare, gitops, infrastructure-as-code, kubernetes, terraform
- Language: HCL
- Homepage:
- Size: 22.5 MB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
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
```