Skip to content

Instantly share code, notes, and snippets.

@fabito
Created August 30, 2020 21:20
Show Gist options
  • Save fabito/0790b512d5bd57133f99c8209de20dab to your computer and use it in GitHub Desktop.
Save fabito/0790b512d5bd57133f99c8209de20dab to your computer and use it in GitHub Desktop.
- id: 'port-forward'
name: 'gcr.io/cloud-builders/docker'
args: [
'run',
'-itd',
'--network-alias', 'ml-pipeline.local',
'-e', 'CLOUDSDK_COMPUTE_ZONE=${_KF_ZONE}',
'-e', 'CLOUDSDK_CONTAINER_CLUSTER=${_KF_CLUSTER}',
'-e', 'CLOUDSDK_CORE_PROJECT=${_KF_PROJECT}',
'-p', '8888:8888',
'--network', 'cloudbuild',
'gcr.io/cloud-builders/kubectl',
'port-forward', "-n", "kubeflow", "svc/ml-pipeline", '--address', '0.0.0.0', "8888:8888"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment