Skip to content

Commit 197b78b

Browse files
committed
feat: fabric ports setup
1 parent ee19ff9 commit 197b78b

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

deployments/liqo/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
| networking.enabled | bool | `true` | Use the default Liqo networking module. |
8787
| networking.fabric.config.fullMasquerade | bool | `false` | Enabe/Disable the full masquerade mode for the fabric pod. It means that all traffic will be masquerade using the first external cidr IP, instead of using the pod IP. Full masquerade is useful when the cluster nodeports uses a PodCIDR IP to masqerade the incoming traffic. IMPORTANT: Please consider that enabling this feature will masquerade the source IP of traffic towards a remote cluster, making impossible for a pod that receives the traffic to know the original source IP. |
8888
| networking.fabric.config.gatewayMasqueradeBypass | bool | `false` | Enable/Disable the masquerade bypass for the gateway pods. It means that the packets from gateway pods will not be masqueraded from the host where the pod is scheduled. This is useful in scenarios where CNIs masquerade the traffic from pod to nodes. For example this is required when using the Azure CNI or Kindnet. |
89+
| networking.fabric.config.healthProbeBindAddress | string | `":8081"` | Set the address where the fabric pod will expose the health probe. To disable the health probe, set the address to ":0". |
90+
| networking.fabric.config.metricsAddress | string | `":8082"` | Set the address where the fabric pod will expose the metrics. To disable the metrics, set the address to ":0". |
8991
| networking.fabric.config.nftablesMonitor | bool | `true` | Enable/Disable the nftables monitor for the fabric pod. It means that the fabric pod will monitor the nftables rules and will restore them in case of changes. In some cases (like K3S), this monitor can cause a huge amount of CPU usage. If you are experiencing high CPU usage, you can disable this feature. |
9092
| networking.fabric.image.name | string | `"ghcr.io/liqotech/fabric"` | Image repository for the fabric pod. |
9193
| networking.fabric.image.version | string | `""` | Custom version for the fabric image. If not specified, the global tag is used. |

deployments/liqo/templates/liqo-fabric-daemonset.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ spec:
4545
- --podname=$(POD_NAME)
4646
- --nodename=$(NODE_NAME)
4747
- --geneve-port={{ .Values.networking.genevePort }}
48+
- --health-probe-bind-address=:{{ .Values.networking.fabric.config.healthProbeBindAddressPort}}
49+
- --metrics-address=:{{ .Values.networking.fabric.config.metricsAddressPort}}
4850
{{- if not .Values.requirements.kernel.enabled }}
4951
- --disable-kernel-version-check
5052
{{- end }}
@@ -79,6 +81,14 @@ spec:
7981
valueFrom:
8082
fieldRef:
8183
fieldPath: metadata.name
84+
ports:
85+
- name: healthz
86+
containerPort: {{ .Values.networking.fabric.config.healthProbeBindAddressPort }}
87+
protocol: TCP
88+
readinessProbe:
89+
httpGet:
90+
path: /readyz
91+
port: healthz
8292
hostNetwork: true
8393
{{- if .Values.networking.fabric.pod.priorityClassName }}
8494
priorityClassName: {{ .Values.networking.fabric.pod.priorityClassName }}

deployments/liqo/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ networking:
124124
# In some cases (like K3S), this monitor can cause a huge amount of CPU usage.
125125
# If you are experiencing high CPU usage, you can disable this feature.
126126
nftablesMonitor: true
127+
# -- Set the port where the fabric pod will expose the health probe.
128+
# To disable the health probe, set the port to 0.
129+
healthProbeBindAddressPort: "8081"
130+
# -- Set the port where the fabric pod will expose the metrics.
131+
# To disable the metrics, set the port to 0.
132+
metricsAddressPort: "8082"
127133

128134
authentication:
129135
# -- Enable/Disable the authentication module.

0 commit comments

Comments
 (0)