Skip to content

Instantly share code, notes, and snippets.

@ruzickap
Last active September 13, 2019 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruzickap/ef599081a0521a110569e74c815a430d to your computer and use it in GitHub Desktop.
Save ruzickap/ef599081a0521a110569e74c815a430d to your computer and use it in GitHub Desktop.
Kubernetes notes
# 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