Last active
September 13, 2019 05:38
-
-
Save ruzickap/ef599081a0521a110569e74c815a430d to your computer and use it in GitHub Desktop.
Kubernetes notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect to PostgreSQL database internally | |
kubectl run -i --tty --rm psql --image=postgres --env "PGPASSWORD=user_password" --command -- \ | |
psql -U myuser -h patroni.patroni.svc.cluster.local my_database | |
# Port forwarding to service | |
kubectl port-forward -n harbor service/harbor 8080:443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment