Skip to content

Commit 1584cb8

Browse files
Add example for configuring proxies on tinkerbell k8s nodes (#1908)
* Add example for configuring proxies on tinkerbell k8s nodes * resolve comments
1 parent 1819af6 commit 1584cb8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Add proxy config to the `TinkerbellTempalteConfiguration`
2+
3+
The `configure-containerd-proxy` action configures proxy for containerd on all the Kubernetes nodes. You can add the following section in your cluster config to
4+
setup proxy on the nodes:
5+
6+
```yaml
7+
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
8+
kind: TinkerbellTemplateConfig
9+
metadata:
10+
name: template-name
11+
spec:
12+
template:
13+
global_timeout: 6000
14+
id: ""
15+
name: template-name
16+
tasks:
17+
- actions:
18+
// Append to existing actions.
19+
- environment:
20+
CONTENTS: |
21+
[Service]
22+
Environment:"HTTP_PROXY=<HTTP-PROXY-IP:PORT>"
23+
Environment:"HTTPS_PROXY=<HTTPS-PROXY-IP:PORT>"
24+
Environment:"NO_PROXY=<Comma-separated-list-of-no-proxies>"
25+
DEST_DISK: <block device path> # E.g. /dev/sda2
26+
DEST_PATH: /etc/systemd/system/containerd.service.d/http-proxy.conf
27+
DIRMODE: "0700"
28+
FS_TYPE: ext4
29+
GID: "0"
30+
MODE: "0600"
31+
UID: "0"
32+
image: writefile:v1.0.0
33+
name: configure-containerd-proxy
34+
timeout: 90
35+
```
36+
37+
Note the you have to provide values for `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` in the config above.

0 commit comments

Comments
 (0)