update kubeflow dip-catalog

This commit is contained in:
ChanghoWoo
2025-01-13 02:31:27 +00:00
parent 1dc1181a03
commit 5451f16d72
1959 changed files with 602337 additions and 0 deletions
@@ -0,0 +1,6 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: kfp-cache-selfsigned-issuer
spec:
selfSigned: {}
@@ -0,0 +1,15 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: kfp-cache-cert
spec:
commonName: kfp-cache-cert
isCA: true
dnsNames:
- cache-server
- cache-server.$(kfp-namespace)
- cache-server.$(kfp-namespace).svc
issuerRef:
kind: Issuer
name: kfp-cache-selfsigned-issuer
secretName: webhook-server-tls
@@ -0,0 +1,25 @@
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: cache-webhook-kubeflow
annotations:
cert-manager.io/inject-ca-from: $(kfp-namespace)/kfp-cache-cert
webhooks:
- name: cache-server.$(kfp-namespace).svc
clientConfig:
service:
name: cache-server
namespace: $(kfp-namespace)
path: "/mutate"
failurePolicy: Ignore
rules:
- operations: [ "CREATE" ]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["pods"]
sideEffects: None
timeoutSeconds: 5
objectSelector:
matchLabels:
pipelines.kubeflow.org/cache_enabled: "true"
admissionReviewVersions: ["v1beta1"]
@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kubeflow
resources:
- cache-cert-issuer.yaml
- cache-cert.yaml
- cache-webhook-config.yaml
commonLabels:
app: cache-server-cert-manager
configurations:
- params.yaml
@@ -0,0 +1,13 @@
varReference:
- path: spec/commonName
kind: Certificate
- path: spec/dnsNames
kind: Certificate
- path: spec/issuerRef/name
kind: Certificate
- path: metadata/annotations
kind: MutatingWebhookConfiguration
- path: webhooks/clientConfig/service/namespace
kind: MutatingWebhookConfiguration
- path: webhooks/name
kind: MutatingWebhookConfiguration
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../third-party/application/cluster-scoped
- ../../../third-party/argo/installs/namespace/cluster-scoped
- ../../../base/pipeline/cluster-scoped
@@ -0,0 +1,18 @@
# Delete cache deployer related resources as we use the cert-manager instead
apiVersion: apps/v1
kind: Deployment
metadata:
name: cache-deployer-deployment
$patch: delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kubeflow-pipelines-cache-deployer-role
$patch: delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kubeflow-pipelines-cache-deployer-rolebinding
$patch: delete
@@ -0,0 +1,44 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kubeflow
resources:
- ../../dev
- ../base
- namespace.yaml
# NOTE: var name must be unique globally to allow composition of multiple kustomize
# packages. Therefore, we added prefix `kfp-dev-` to distinguish it from
# others.
# ml-pipeline sa's metadata.namespace will be first transformed by namespace field in kustomization.yaml
# so that we only need to change kustomization.yaml's namespace field for namespace customization.
vars:
- fieldref:
fieldPath: metadata.namespace
name: kfp-dev-namespace
objref:
apiVersion: v1
kind: ServiceAccount
name: ml-pipeline
configurations:
- params.yaml
# Pass proper arguments to cache-server to use cert-manager certificate
# Delete the cache deployer as we use the cert-manager instead
patches:
- path: ./delete-cache-deployer.yaml
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: "--tls_cert_filename=tls.crt"
target:
kind: Deployment
name: cache-server
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: "--tls_key_filename=tls.key"
target:
kind: Deployment
name: cache-server
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: '$(kfp-dev-namespace)'
@@ -0,0 +1,4 @@
# Allow Kustomize var to replace following fields.
varReference:
- path: metadata/name
kind: Namespace
@@ -0,0 +1,31 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../platform-agnostic-multi-user
- ../base
namespace: kubeflow
# Pass proper arguments to cache-server to use cert-manager certificate
patches:
# Delete the cache deployer as we use the cert-manager instead
- path: patches/delete.clusterrole.cache-deployer.yaml
- path: patches/delete.crb.cache-deployer.yaml
- path: patches/delete.deployment.cache-deployer.yaml
- path: patches/delete.role.cache-deployer.yaml
- path: patches/delete.rolebinding.cache-deployer.yaml
- path: patches/delete.sa.cache-deployer.yaml
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: "--tls_cert_filename=tls.crt"
target:
kind: Deployment
name: cache-server
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: "--tls_key_filename=tls.key"
target:
kind: Deployment
name: cache-server
@@ -0,0 +1,6 @@
# Delete cache deployer as we use the cert-manager instead
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kubeflow-pipelines-cache-deployer-clusterrole
$patch: delete
@@ -0,0 +1,6 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubeflow-pipelines-cache-deployer-clusterrolebinding
$patch: delete
@@ -0,0 +1,6 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cache-deployer-deployment
$patch: delete
@@ -0,0 +1,6 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kubeflow-pipelines-cache-deployer-role
$patch: delete
@@ -0,0 +1,6 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kubeflow-pipelines-cache-deployer-rolebinding
$patch: delete
@@ -0,0 +1,6 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kubeflow-pipelines-cache-deployer-sa
$patch: delete