You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/tutorials/scaleway.md
+37
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,16 @@ In this example we will use `example.com` as an example.
19
19
To use ExternalDNS with Scaleway DNS, you need to create an API token (composed of the Access Key and the Secret Key).
20
20
You can either use existing ones or you can create a new token, as explained in [How to generate an API token](https://www.scaleway.com/en/docs/generate-an-api-token/) or directly by going to the [credentials page](https://console.scaleway.com/account/organization/credentials).
21
21
22
+
Scaleway provider supports configuring credentials using profiles or supplying it directly with environment variables.
22
23
24
+
### Configuration using a config file
25
+
You can supply the credentials through a config file:
26
+
1. Create the config file. Check out [Scaleway docs](https://github.com/scaleway/scaleway-sdk-go/blob/master/scw/README.md#scaleway-config) for instructions
27
+
2. Mount it as a Secret into the Pod
28
+
3. Configure environment variable `SCW_PROFILE` to match the profile name in the config file
29
+
4. Configure environment variable `SCW_CONFIG_PATH` to match the location of the mounted config file
30
+
31
+
### Configuration using environment variables
23
32
Two environment variables are needed to run ExternalDNS with Scaleway DNS:
24
33
-`SCW_ACCESS_KEY` which is the Access Key.
25
34
-`SCW_SECRET_KEY` which is the Secret Key.
@@ -61,6 +70,20 @@ spec:
61
70
value: "<your access key>"
62
71
- name: SCW_SECRET_KEY
63
72
value: "<your secret key>"
73
+
### Set if configuring using a config file. Make sure to create the Secret first.
74
+
# - name: SCW_PROFILE
75
+
# value: "<profile name>"
76
+
# - name: SCW_CONFIG_PATH
77
+
# value: /etc/scw/config.yaml
78
+
# volumeMounts:
79
+
# - name: scw-config
80
+
# mountPath: /etc/scw/config.yaml
81
+
# readOnly: true
82
+
# volumes:
83
+
# - name: scw-config
84
+
# secret:
85
+
# secretName: scw-config
86
+
###
64
87
```
65
88
66
89
### Manifest (for clusters with RBAC enabled)
@@ -127,6 +150,20 @@ spec:
127
150
value: "<your access key>"
128
151
- name: SCW_SECRET_KEY
129
152
value: "<your secret key>"
153
+
### Set if configuring using a config file. Make sure to create the Secret first.
0 commit comments