...
There are two ways to do this:
The simplest way to achieve this is to use kubectl:Use
kubectl
Code Block |
---|
kubectl create secret generic cdcm-connection-routing --from-file=connection-routing.yml=./connection-routing.yml -n cdcm |
f the secret has to be created manually or from a vault, you can use this template:
Code Block |
---|
apiVersion: v1 data: connection-routing.yml: <base64 encoded content of the file connection-routing.yml> kind: Secret metadata: name: cdcm-connection-routing namespace: cdcm type: Opaque |
...