Skip to content

Commit

Permalink
update: image puller
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 26, 2024
1 parent d1c09fb commit f91da68
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 38 deletions.
8 changes: 3 additions & 5 deletions components/app-configs/image-puller/base/ds.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: image-puller
namespace: openshift-config
spec:
selector:
matchLabels:
Expand All @@ -14,12 +12,12 @@ spec:
name: image-puller
spec:
containers:
- name: tools
imagePullPolicy: Always
image: image-registry.openshift-image-registry.svc:5000/openshift/tools:latest
- name: manchurian
command:
- sleep
- '3600'
imagePullPolicy: Always
image: image-registry.openshift-image-registry.svc:5000/openshift/tools:latest
resources:
limits:
memory: 20Mi
Expand Down
6 changes: 3 additions & 3 deletions components/app-configs/image-puller/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- ds.yaml
- ds.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: image-puller

resources:
- ../../base
- namespace.yaml
- ray-image
- tf-image
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

components:
- ../../../components/image-puller

patches:
- target:
kind: DaemonSet
name: image-puller
patch: |-
- op: replace
path: /metadata/name
value: ray-puller
- op: replace
path: /spec/template/spec/containers/0/image
value: quay.io/modh/ray:2.35.0-py39-cu121
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

components:
- ../../../components/image-puller

patches:
- target:
kind: DaemonSet
name: image-puller
patch: |-
- op: replace
path: /metadata/name
value: tf-puller
- op: replace
path: /spec/template/spec/containers/0/image
value: image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/tensorflow:2024.1

This file was deleted.

0 comments on commit f91da68

Please sign in to comment.