Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/colinwilson/terraform-kubernetes-hcloud-csi-driver
A Terraform module to provision the Hetzner CSI Driver within a Kubernetes cluster.
https://github.com/colinwilson/terraform-kubernetes-hcloud-csi-driver
hcloud hetzner hetzner-cloud kubernetes terraform terraform-module
Last synced: 26 days ago
JSON representation
A Terraform module to provision the Hetzner CSI Driver within a Kubernetes cluster.
- Host: GitHub
- URL: https://github.com/colinwilson/terraform-kubernetes-hcloud-csi-driver
- Owner: colinwilson
- Created: 2020-07-30T14:07:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-24T16:57:53.000Z (over 3 years ago)
- Last Synced: 2024-08-03T21:02:28.567Z (3 months ago)
- Topics: hcloud, hetzner, hetzner-cloud, kubernetes, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/colinwilson/hcloud-csi-driver/kubernetes
- Size: 11.7 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hcloud - terraform-kubernetes-hcloud-csi-driver
README
# terraform-kubernetes-hcloud-csi-driver
A simple module to provision the [Hetzner Container Storage Interface Driver](https://github.com/hetznercloud/csi-driver/) within a Kubernetes cluster running on Hetzner Cloud. See the variables file for the available configuration options. Please note that this module **requires Kubernetes 1.15 or newer**.### **Prerequisites**
Requires cluster nodes be prior [initialized by a cloud-controller-manager](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/#taint-based-evictions). You can use the [terraform-kubernetes-hcloud-controller-manager](https://github.com/colinwilson/terraform-kubernetes-hcloud-controller-manager) module to initialize your cluster nodes.
### **Deploy Test Persistent Volume**
Verify everything is working, create a persistent volume claim and a pod which uses that volume:
```
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: csi-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: hcloud-volumes
---
kind: Pod
apiVersion: v1
metadata:
name: my-csi-app
spec:
containers:
- name: my-frontend
image: busybox
volumeMounts:
- mountPath: "/data"
name: my-csi-volume
command: [ "sleep", "1000000" ]
volumes:
- name: my-csi-volume
persistentVolumeClaim:
claimName: csi-pvc
```Once the pod is ready, exec a shell and check that your volume is mounted at `/data`.
```
kubectl exec -it my-csi-app -- /bin/sh
```