Comments (3)
Hello,
Apologies in advance, since I don't know k8s very well, but from reading the definition of the emqx-ee helm chart, it looks like the chart mounts the secret configured as emqxLicenseSecretName
as a volume in the container:
volumes:
{{- if .Values.emqxLicenseSecretName }}
- name: emqx-license
secret:
secretName: {{ .Values.emqxLicenseSecretName }}
...
containers:
- name: emqx
...
volumeMounts:
- ....
{{ if .Values.emqxLicenseSecretName }}
- name: emqx-license
mountPath: "/opt/emqx/etc/emqx.lic"
subPath: "emqx.lic"
readOnly: true
{{ end }}
...
Perhaps the way forward is to edit the existing secret (kubectl edit secrets <emqxLicenseSecretName>
) and wait until Kubernetes updates the mounted secret: https://kubernetes.io/docs/concepts/configuration/secret/#mounted-secrets-are-updated-automatically
But please keep in mind, that my experience in operating k8s is extremely limited, so maybe wait until someone else with more experience gives the answer.
from emqx-rel.
P.S.
Can I update license without redploy emqx cluster, cause this will make client disconnect.
Are you worried about client disconnect or reconnect? If you use kubectl rollout
feature to perform rolling restart, the configuration upgrade will proceed with a retatively little traffic disturbance. The clients will indeed reconnect immediately to the new pod.
This is completely normal in the kubernetes world, where everything is immutable.
from emqx-rel.
@k32
Thanks for your advice, the volume mount is defined as emqx.lic, which is a file, will not updated in pod when original file updated(Seems an docker issue).
If volume mounted is a path, which will works when original file updated.
I've tried what you said that to edit existing secret, as I said, the emqx.lic still get no changed in the target pod(two days passed after I edit the secret).
from emqx-rel.
Related Issues (20)
- ....
- problem setting auth.jwt.verify_claims using environment variables
- Start EMQX without start.sh in Dockerfile HOT 1
- Help using plugin HOT 1
- ERROR: Docker Build Instructions HOT 2
- Error in compiling Elixir plugin
- docker-compose.yaml configure dashboard is not valid. HOT 2
- imagePullSecrets per Container HOT 7
- Configuration changes don't restart Kubernetes pod HOT 4
- Configuration broke in 4.3 HOT 2
- Cannot find plugins: [emqx_auth_username] HOT 1
- Plugin is not loaded automatically
- helm install emqx Custom EMQX_LOADED_PLUGINS HOT 15
- Persistence not work !!! HOT 4
- Error on networking api on Kube 1.19
- Support podAnnotations
- Failed to install on K8s 1.22
- emqx docker images run fail HOT 1
- is EMQX support my dev environment? (armhf, armv7l) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emqx-rel.