https://github.com/whywaita/shoes-lxd
shoes-provider for LXD
https://github.com/whywaita/shoes-lxd
lxd myshoes myshoes-provider
Last synced: about 1 year ago
JSON representation
shoes-provider for LXD
- Host: GitHub
- URL: https://github.com/whywaita/shoes-lxd
- Owner: whywaita
- Created: 2021-10-24T10:55:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T18:56:01.000Z (over 2 years ago)
- Last Synced: 2024-11-08T13:29:42.812Z (over 1 year ago)
- Topics: lxd, myshoes, myshoes-provider
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shoes-lxd
shoes-provider for [LXD](https://linuxcontainers.org/lxd/)
## Setup
please set Environment values
### Required values
`shoes-lxd` needs information of worker.
use `LXD_HOSTS` and ignore `LXD_HOST` if set both.
#### for single worker
- `LXD_HOST`
- FQDN or IP address of running LXD daemon
- `LXD_CLIENT_CERT`
- File path of client cert
- `LXD_CLIENT_KEY`
- File path of client cert key
#### for multi worker
- `LXD_HOSTS`
```json
[
{
"host": "https://192.0.2.100:8443",
"client_cert": "./node1/client.crt",
"client_key": "./node1/client.key"
},
...
]
```
### Optional values
- `LXD_IMAGE_ALIAS`
- set runner image alias
- default: `ubuntu:bionic`
- e.g.) for remote image server: `https://192.0.2.110:8443/ubuntu-custom`
- `LXD_RESOURCE_TYPE_MAPPING`
- mapping `resource_type` and CPU / Memory.
- need JSON format. keys is `resource_type_name`, `cpu`, `memory`.
- e.g.) `[{"resource_type_name": "nano", "cpu": 1, "memory": "1GB"}, {"resource_type_name": "micro", "cpu": 2, "memory": "2GB"}]`
- become no limit if not set resource_type.
## Note
LXD Server can't use `zfs` in storageclass if use `--privileged`. ref: https://discuss.linuxcontainers.org/t/docker-with-overlay-driver-in-lxd-cluster-not-working/9243
We recommend using `btrfs`.