Skip to content

Instantly share code, notes, and snippets.

@fabito
Last active August 30, 2020 21:27
Show Gist options
  • Save fabito/99c618c9bad83b297daa05b3518f6655 to your computer and use it in GitHub Desktop.
Save fabito/99c618c9bad83b297daa05b3518f6655 to your computer and use it in GitHub Desktop.
Using kubectl port-forward within Google Cloud Build jobs
- id: 'list-pipelines'
name: 'curlimages/curl:7.72.0'
args: [
'-v',
'--retry-connrefused',
'--connect-timeout', '5',
'--max-time', '10',
'--retry', '5',
'--retry-delay', '0',
'--retry-max-time', '40',
'http://ml-pipeline.local:8888/apis/v1beta1/pipelines'
]
waitFor: ['port-forward']
timeout: 30s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment