alias port-forward kube
parent
db018dd5ca
commit
cf92503ce7
|
|
@ -19,6 +19,14 @@ alias fluxUp="flux reconcile source git flux-system"
|
||||||
alias kprod="export AWS_PROFILE='production' && aws sso login && aws eks update-kubeconfig --region eu-west-1 --name rfidprod-production"
|
alias kprod="export AWS_PROFILE='production' && aws sso login && aws eks update-kubeconfig --region eu-west-1 --name rfidprod-production"
|
||||||
alias kstage="export AWS_PROFILE='staging' && aws sso login && aws eks update-kubeconfig --region eu-west-1 --name rfidprod-staging"
|
alias kstage="export AWS_PROFILE='staging' && aws sso login && aws eks update-kubeconfig --region eu-west-1 --name rfidprod-staging"
|
||||||
|
|
||||||
|
# Open a port forward session to a remote Kubernetes deployment
|
||||||
|
# @param {string} $1 Deployment name
|
||||||
|
# @param {number} $2 Local+remote OR local port number
|
||||||
|
# @param {number=} $3 Remote port number
|
||||||
|
kf() {
|
||||||
|
kubectl port-forward "$1" "$2${3:+:$3}"
|
||||||
|
}
|
||||||
|
|
||||||
alias tp="ssh -L localhost:5488:emb-ofbiz-prep-ofbiz2-rds-encrypted.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon"
|
alias tp="ssh -L localhost:5488:emb-ofbiz-prep-ofbiz2-rds-encrypted.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon"
|
||||||
alias tn="ssh -L localhost:5488:emb-ofbiz-nereide-ofbiz2-rds.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon"
|
alias tn="ssh -L localhost:5488:emb-ofbiz-nereide-ofbiz2-rds.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue