Skip to content

Commit

Permalink
Merge pull request openyurtio#98 from njucjc/fix-link
Browse files Browse the repository at this point in the history
Fix: helm chart support forward-node-ip value
  • Loading branch information
njucjc authored Mar 20, 2023
2 parents ea81ea8 + 241b661 commit 9f05184
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/raven-agent/templates/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
data:
vpn-driver: {{ .Values.vpn.driver }}
forward-node-ip: {{ .Values.vpn.forward-node-ip }}
kind: ConfigMap
metadata:
name: raven-agent-config
Expand Down
6 changes: 6 additions & 0 deletions charts/raven-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ containerEnv:
configMapKeyRef:
key: vpn-driver
name: raven-agent-config
- name: FORWARD_NODE_IP
valueFrom:
configMapKeyRef:
key: forward-node-ip
name: raven-agent-config
vpn:
driver: libreswan
forward-node-ip: false
# raven-agent requires a unique vpn psk
# You can generate one with the command:
# 'openssl rand -hex 64'
Expand Down
2 changes: 1 addition & 1 deletion docs/raven-agent-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ wlcb-node1 Ready <none> 20d v1.16.2 10.48.115.11
wlcb-node2 Ready <none> 20d v1.16.2 10.48.115.12
```

We use a [Gateway](https://github.com/openyurtio/openyurt/blob/raven-controller-manager/pkg/apis/raven/v1alpha1/gateway_types.go) CR to manage nodes in different physical regions, and label nodes to indicate which `Gateway` these nodes are managed by.
We use a [Gateway](https://github.com/openyurtio/openyurt/blob/master/pkg/apis/raven/v1alpha1/gateway_types.go) CR to manage nodes in different physical regions, and label nodes to indicate which `Gateway` these nodes are managed by.

For example, We label nodes in region `cn-huhehaote` with value `gw-hhht`, indicating that these nodes are managed by the `gw-hhht` gateway.

Expand Down

0 comments on commit 9f05184

Please sign in to comment.