Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schm1tz1/proxmox-k8s-playbook
Proxmox Playbooks for Kubernetes installations with terraform and ansible
https://github.com/schm1tz1/proxmox-k8s-playbook
Last synced: 14 days ago
JSON representation
Proxmox Playbooks for Kubernetes installations with terraform and ansible
- Host: GitHub
- URL: https://github.com/schm1tz1/proxmox-k8s-playbook
- Owner: Schm1tz1
- Created: 2022-06-30T07:45:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T12:58:50.000Z (3 months ago)
- Last Synced: 2024-10-25T14:34:32.447Z (3 months ago)
- Language: Shell
- Size: 56.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playbook to install local k8s cluster on Proxmox
## Set Up VMs with Terraform
* add your token, then adapt the configs/variables in [./terraform](./terraform/)
* check with `terraform plan`
* deploy with `terraform apply`## Installation of different distributions
* k3s - go to [k3s](./k3s/)
* RKE2 - go to [rke2](./rke2/)
* OpenShift (TODO)## General Kubernetes
### Kubernetes Dashboard
Source: https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
* install dashboard: `kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.5.0/aio/deploy/recommended.yaml` (also see https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/)
* start proxy: `kubectl proxy` and access dashboard via http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
* To create a user/token:
```
$ cat <dashboard-adminuser.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-user
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: admin-user
namespace: kubernetes-dashboard
EOF$ kubectl apply -f dashboard-adminuser.yaml
serviceaccount/admin-user created
clusterrolebinding.rbac.authorization.k8s.io/admin-user created$ kubectl -n kubernetes-dashboard create token admin-user
(...)
```
Copy & Paste the token into the token field on login.
(https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md)