Update exec syntax in notes

This commit is contained in:
Alexander Olofsson 2022-01-03 11:54:23 +01:00
parent 83cc004c36
commit e5a973902e
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
3 changed files with 5 additions and 4 deletions

View file

@ -28,4 +28,4 @@ https://docs.funkwhale.audio/changelog.html#increased-quality-of-jpeg-thumbnails
To get a shell in the master pod, run the following commands;
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "funkwhale.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
kubectl exec --namespace {{ .Release.Namespace }} -c funkwhale -it $POD_NAME bash
kubectl exec --namespace {{ .Release.Namespace }} -c funkwhale -it $POD_NAME -- bash

View file

@ -29,9 +29,10 @@ Matrix client - and register an account - as soon as final setup is done.
You can also create an admin user with the following command;
{{- else }}
You can create a user in your new Synapse install by running the following
command;
command; (replacing USERNAME and PASSWORD)
{{- end }}
kubectl exec --namespace {{ .Release.Namespace }} {{ template "matrix-synapse.fullname" . }} -- register_new_matrix_user -c /synapse/config/homeserver.yaml -c /synapse/config/conf.d/secrets.yaml -u USERNAME -p PASSWORD --admin http://localhost:8008
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "matrix-synapse" . }},app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/component=synapse" -o jsonpath="{.items[0].metadata.name}")
kubectl exec --namespace {{ .Release.Namespace }} $POD_NAME -- register_new_matrix_user -c /synapse/config/homeserver.yaml -c /synapse/config/conf.d/secrets.yaml -u USERNAME -p PASSWORD --admin http://localhost:8008
You can also specify --no-admin to create a non-admin user.

View file

@ -23,4 +23,4 @@
For administration purposes you can either open a shell in a RadosGW pod or connect to one of your mon hosts:
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "radosgw.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
kubectl exec --namespace {{ .Release.Namespace }} $POD_NAME radosgw-admin --help
kubectl exec --namespace {{ .Release.Namespace }} $POD_NAME -- radosgw-admin --help