How to create s secret file for proxy PSK and how to set values.yaml for it #198
-
How to create s secret file for proxy PSK and how to set values.yaml for it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @agnesyangwei! It's a good question. I never made it before, but I will share some tips for your test. Tutorial to create a PSK file:
Assuming you created a PSK file manually on your work computer outside of the Kubernetes cluster, example: You need create a secret manually in Kubernetes cluster. Doc:
Example: kubectl create secret generic zabbix-proxy-psk-secret --from-file=$HOME/zabbix_proxy.psk -n monitoring A list of additional environment variables. List can be extended with other environment variables listed here:
Now you can use the follow values in # other values was hidden
zabbixProxy:
enabled: true
# other values was hidden
extraEnv:
- name: "ZBX_TLSCONNECT"
value: "psk"
- name: "ZBX_TLSACCEPT"
value: "psk"
- name: "ZBX_TLSPSKIDENTITY"
value: "CHANGE_HERE"
- name: "ZBX_TLSPSKIDENTITY"
value: "/home/zabbix/secret.psk"
extraVolumeMounts:
- mountPath: /home/zabbix
name: zabbix-proxy-psk-volume
extraVolumes:
- name: zabbix-proxy-psk-volume
secret:
secretName: zabbix-proxy-psk-secret After this configure the Zabbix Web according the first tutorials in this answer. Again, I've never had to do this before. I don't know if it works... but it's worth a try. If it doesn't work, post the error here and let's wait and see if someone else knows and can help. |
Beta Was this translation helpful? Give feedback.
-
Thanks the feedback @agnesyangwei I edited my answer. Have a nice week. |
Beta Was this translation helpful? Give feedback.
Hello @agnesyangwei!
It's a good question. I never made it before, but I will share some tips for your test.
Tutorial to create a PSK file:
Assuming you created a PSK file manually on your work computer outside of the Kubernetes cluster, example:
$HOME/zabbix_proxy.psk
.You need create a secret manually in Kubernetes cluster. Doc:
Example:
kubectl create secret generic zabbix-proxy-psk-secret --from-file=$HOME/zabbix_proxy.psk -n monitoring
A list of additi…