Search…
⌃K
Links

2 - Access

How to access Memphis after installation

How to configure public access to Memphis

Localhost

Run
kubectl port-forward service/memphis-cluster 6666:6666 9000:9000 7770:7770 --namespace memphis > /dev/null &
Credentials
UI/CLI root username - root
UI/CLI root Password - kubectl get secret memphis-creds -n memphis -o jsonpath="{.data.ROOT_PASSWORD}" | base64 --decode
If a simpler localhost connection is needed for more services, use Kubefwd.

Production

Step 1: Deploy self-signed cert

  1. 1.
    Install mkcert and generate a certificate
1
mkcert -install
2
mkcert -cert-file memphis.pem -key-file memphis-key.pem "*.memphis.dev"
2. Create a secret with the new cert and private key
kubectl create secret generic tls-secret --from-file=memphis.pem --from-file=memphis-key.pem -n memphis
3. Reinstall Memphis with the cert
helm install my-memphis memphis --set analytics="false",cluster.enabled="true",websocket.tls.cert="memphis.pem",websocket.tls.key="memphis-key.pem",websocket.tls.secret.name="tls-secret" --create-namespace --namespace memphis --wait

Step 2: Create the LB

  1. 1.
    Run the following
1
kubectl expose service memphis-cluster --port=9000,7770 --name=external-service --type=LoadBalancer -n memphis
2
kubectl expose service memphis-http-proxy --port=4444 --name=http-external-service --type=LoadBalancer -n memphis
3
kubectl -n memphis-sandbox patch svc external-service -p '{"spec":{"ports": [{"port": 443,"name":"https","targetPort": 9000}]}}'
2. Add the certificate to the LB as well