Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 3d5a27d

Browse files
committed
Improve documentation on k8s deployment
1 parent c0b2b3e commit 3d5a27d

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,31 @@ Prebuilt containers are posted on [Docker Hub](https://hub.docker.com/r/apache/c
2222

2323
The cloud controller is intended to be deployed as a daemon set, with on instance running on each node.
2424

25-
Please see [deployment.yaml](/deployment.yaml) for an example deployment.
25+
To configure API access to your CloudStack management server, you need to create a secret containing a `cloudstack.ini`
26+
that is suitable for your environment.
27+
28+
`cloudstack.ini` should look like this:
29+
```ini
30+
[Global]
31+
api-url = <CloudStack API URL>
32+
api-key = <CloudStack API Key>
33+
secret-key = <CloudStack API Secret>
34+
project-id = <CloudStack Project UUID (optional)>
35+
zone = <CloudStack Zone Name (optional)>
36+
ssl-no-verify = <Disable SSL certificate validation: true or false (optional)>
37+
```
38+
39+
The access token needs to be able to fetch VM information and deploy load balancers in the project or domain where the nodes reside.
2640

27-
The comments explain how to configure Cloudstack API access.
28-
You need an access token that is allowed to fetch VM information and deploy load balancers in the project or domain where the nodes reside.
41+
To create the secret, use the following command:
42+
```bash
43+
kubectl create secret generic cloudstack-secret --from-file=cloudstack.ini
44+
```
45+
46+
You can then use the provided example [deployment.yaml](/deployment.yaml) to deploy the controller:
47+
```bash
48+
kubectl apply -f deployment.yaml
49+
```
2950

3051
### Protocols
3152

0 commit comments

Comments
 (0)