-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* cert-generator: Disable client-side validation Closes #1500 Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com> * manifests: Generate valid VirtualService by default Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com> * manifests: Disable sidecar injection for all components Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com> * manifests: Remove erroneous storageClassName from PVC Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com> * manifests: Add katib-with-kubeflow-cert-manager overlay Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com> * manifests: Pin images for new overlay to v0.11.0 Pin images for new overlay `katib-with-kubeflow-cert-manager`. Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com>
- Loading branch information
1 parent
f009546
commit 75e8b86
Showing
13 changed files
with
192 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
manifests/v1beta1/installs/katib-with-kubeflow-cert-manager/certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Certificate | ||
metadata: | ||
name: katib-webhook-cert | ||
spec: | ||
isCA: true | ||
commonName: $(KATIB_SERVICE_NAME).$(KATIB_NAMESPACE).svc | ||
dnsNames: | ||
- $(KATIB_SERVICE_NAME).$(KATIB_NAMESPACE).svc | ||
- $(KATIB_SERVICE_NAME).$(KATIB_NAMESPACE).svc.cluster.local | ||
issuerRef: | ||
kind: Issuer | ||
name: katib-selfsigned-issuer | ||
secretName: katib-webhook-cert | ||
|
||
--- | ||
|
||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Issuer | ||
metadata: | ||
name: katib-selfsigned-issuer | ||
spec: | ||
selfSigned: {} |
96 changes: 96 additions & 0 deletions
96
manifests/v1beta1/installs/katib-with-kubeflow-cert-manager/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: kubeflow | ||
resources: | ||
# Katib controller. | ||
- ../../components/controller/controller.yaml | ||
- ../../components/controller/service.yaml | ||
- ../../components/controller/rbac.yaml | ||
- ../../components/controller/katib-config.yaml | ||
- ../../components/controller/trial-templates.yaml | ||
# Katib CRDs. | ||
- ../../components/crd/experiment.yaml | ||
- ../../components/crd/suggestion.yaml | ||
- ../../components/crd/trial.yaml | ||
# Katib DB manager. | ||
- ../../components/db-manager/db-manager.yaml | ||
- ../../components/db-manager/service.yaml | ||
# Katib DB mysql. | ||
- ../../components/mysql/mysql.yaml | ||
- ../../components/mysql/service.yaml | ||
- ../../components/mysql/pvc.yaml | ||
- ../../components/mysql/secret.yaml | ||
# Katib UI. | ||
- ../../components/ui/ui.yaml | ||
- ../../components/ui/service.yaml | ||
- ../../components/ui/rbac.yaml | ||
# Katib webhooks. | ||
- ../../components/webhook/webhooks.yaml | ||
# Cert-manager certificate for webhooks | ||
- certificate.yaml | ||
# Kubeflow Katib components. | ||
- ../katib-with-kubeflow/katib-application.yaml | ||
- ../katib-with-kubeflow/kubeflow-katib-roles.yaml | ||
- ../katib-with-kubeflow/ui-virtual-service.yaml | ||
images: | ||
- name: docker.io/kubeflowkatib/katib-controller | ||
newTag: v0.11.0 | ||
newName: docker.io/kubeflowkatib/katib-controller | ||
- name: docker.io/kubeflowkatib/katib-db-manager | ||
newTag: v0.11.0 | ||
newName: docker.io/kubeflowkatib/katib-db-manager | ||
- name: docker.io/kubeflowkatib/katib-ui | ||
newTag: v0.11.0 | ||
newName: docker.io/kubeflowkatib/katib-ui | ||
- name: docker.io/kubeflowkatib/cert-generator | ||
newTag: v0.11.0 | ||
newName: docker.io/kubeflowkatib/cert-generator | ||
|
||
patchesStrategicMerge: | ||
- ../katib-standalone/katib-config-patch.yaml | ||
- patches/katib-cert-injection.yaml | ||
|
||
patchesJson6902: | ||
- path: ../katib-with-kubeflow/patches/mysql-pvc.yaml | ||
target: | ||
version: v1 | ||
name: katib-mysql | ||
kind: PersistentVolumeClaim | ||
namespace: kubeflow | ||
|
||
commonLabels: | ||
app.kubernetes.io/component: katib | ||
|
||
vars: | ||
- fieldref: | ||
fieldPath: metadata.namespace | ||
name: KATIB_UI_NAMESPACE | ||
objref: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: katib-ui | ||
- fieldref: | ||
fieldPath: metadata.namespace | ||
name: KATIB_NAMESPACE | ||
objref: | ||
apiVersion: v1 | ||
kind: Service | ||
name: katib-controller | ||
- fieldref: | ||
fieldPath: metadata.name | ||
name: KATIB_SERVICE_NAME | ||
objref: | ||
apiVersion: v1 | ||
kind: Service | ||
name: katib-controller | ||
- name: KATIB_CERT_NAME | ||
objref: | ||
kind: Certificate | ||
group: cert-manager.io | ||
version: v1alpha2 | ||
name: katib-webhook-cert | ||
fieldref: | ||
fieldpath: metadata.name | ||
|
||
configurations: | ||
- params.yaml |
20 changes: 20 additions & 0 deletions
20
manifests/v1beta1/installs/katib-with-kubeflow-cert-manager/params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
varReference: | ||
- path: spec/http/route/destination/host | ||
kind: VirtualService | ||
- path: spec/commonName | ||
kind: Certificate | ||
- path: spec/dnsNames | ||
kind: Certificate | ||
- path: spec/issuerRef/name | ||
kind: Certificate | ||
- path: metadata/annotations | ||
kind: MutatingWebhookConfiguration | ||
- path: metadata/annotations | ||
kind: ValidatingWebhookConfiguration | ||
nameReference: | ||
- kind: Issuer | ||
group: cert-manager.io | ||
fieldSpecs: | ||
- kind: Certificate | ||
group: cert-manager.io | ||
path: spec/issuerRef/name |
13 changes: 13 additions & 0 deletions
13
...fests/v1beta1/installs/katib-with-kubeflow-cert-manager/patches/katib-cert-injection.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: ValidatingWebhookConfiguration | ||
metadata: | ||
name: katib.kubeflow.org | ||
annotations: | ||
cert-manager.io/inject-ca-from: $(KATIB_NAMESPACE)/$(KATIB_CERT_NAME) | ||
--- | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: MutatingWebhookConfiguration | ||
metadata: | ||
name: katib.kubeflow.org | ||
annotations: | ||
cert-manager.io/inject-ca-from: $(KATIB_NAMESPACE)/$(KATIB_CERT_NAME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
manifests/v1beta1/installs/katib-with-kubeflow/patches/mysql-pvc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ | ||
"op": "remove", | ||
"path": "/spec/storageClassName" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters