Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhildred/k3d-helm
run kubernetes cluster in codespace
https://github.com/rhildred/k3d-helm
Last synced: 12 days ago
JSON representation
run kubernetes cluster in codespace
- Host: GitHub
- URL: https://github.com/rhildred/k3d-helm
- Owner: rhildred
- License: mit
- Created: 2024-08-03T20:41:12.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T02:20:05.000Z (4 months ago)
- Last Synced: 2024-09-17T17:53:13.581Z (4 months ago)
- Language: Dockerfile
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k3d-helm
run kubernetes cluster in codespaceTLDR;
```bash
pip install -r requirements.txt
ansible-playbook playbook.yml```
I did struggle with actually seeing the service outside of the dev container. If the service port is 80 and you want to access on 8080, you can run:
```bash
nohup kubectl port-forward svc/< what you named service > 8080:80 2>&1 &
```This repo makes a persistent volume from the storage folder. Consume it like this:
```yml
# Additional volumes on the output Deployment definition.
volumes: [ { "name": "my-volume", "persistentVolumeClaim": { "claimName": "my-pvc" }}]# Additional volumeMounts on the output Deployment definition.
volumeMounts: [ { "mountPath": "/usr/share/nginx/html", "name": "my-volume" }]
```To delete a cluster (and start over):
```bash
k3d cluster delete local-k8s
```Use this as a template and then add helm charts to the playbook.yml as required.