We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8fe908 commit 30d7c39Copy full SHA for 30d7c39
kubernetes_platform/python/README.md
@@ -289,3 +289,21 @@ def pipeline():
289
task = simple_task()
290
kubernetes.set_image_pull_policy(task, "Always")
291
```
292
+
293
+### ImagePullSecrets: Set secrets to authenticate image pulls
294
+```python
295
+from kfp import dsl
296
+from kfp import kubernetes
297
298
+@dsl.container_component
299
+def hello():
300
+ return dsl.ContainerSpec(
301
+ image='some-private-image:tag',
302
+ command=['echo', 'hello']
303
+ )
304
305
+@dsl.pipeline
306
+def pipeline():
307
+ task = hello()
308
+ kubernetes.set_image_pull_secrets(task, ['secret-name'])
309
+```
0 commit comments