Skip to content
项目

关于

用于 Hetzner Cloud Volumes 的 Kubernetes 容器存储接口驱动程序

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Container Storage Interface driver for Hetzner Cloud

Tests codecov

This is a Container Storage Interface driver for Hetzner Cloud enabling you to use ReadWriteOnce Volumes within Kubernetes & other Container Orchestrators. Please note that this driver requires Kubernetes 1.19 or newer.

Kubernetes Docs

Other Container Orchestrators

These environments are not officially supported. However, thanks to their compatibility with the CSI spec and community contributions, quick start guides are available for the following:

Development

Setup a development environment

To setup a development environment, make sure you installed the following tools:

  1. Configure a HCLOUD_TOKEN in your shell session.

[!WARNING] The development environment runs on Hetzner Cloud servers which will induce costs.

  1. Deploy the development cluster:
make -C dev up
  1. Load the generated configuration to access the development cluster:
source dev/files/env.sh
  1. Check that the development cluster is healthy:
kubectl get nodes -o wide
  1. Start developing the CSI driver in the development cluster:
skaffold dev

On code change, skaffold will rebuild the image, redeploy it and print all logs from csi components.

⚠️ Do not forget to clean up the development cluster once are finished:

make -C dev down

Run the docker e2e tests

To run the integrations tests, make sure you installed the following tools:

  1. Run the following command to run the integrations tests:
go test -v -tags integration ./test/integration

Run the kubernetes e2e tests

The Hetzner Cloud CSI driver is tested against the official kubernetes e2e tests.

Before running the integrations tests, make sure you followed the Setup a development environment steps.

  1. Run the kubernetes e2e tests using the following command:
make -C test/e2e/kubernetes test

Run the kubernetes e2e tests with encryption

The kubernetes e2e tests can also be run against LUKS encrypted volumes. This applies the passphrase secret and the hcloud-volumes-encrypted storage class from encryption.yaml and runs the suite using that storage class.

  1. Run the kubernetes e2e tests with encryption using the following command:
make -C test/e2e/kubernetes test ENCRYPTION=true

License

MIT license

探索相关项目

加载中…