-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use cert manager for pipelines cache server instead
Signed-off-by: David van der Spek <[email protected]>
- Loading branch information
Showing
10 changed files
with
55 additions
and
147 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
34 changes: 0 additions & 34 deletions
34
kubeflow/helm/pipelines/templates/cache/deployer/clusterrole.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
kubeflow/helm/pipelines/templates/cache/deployer/clusterrolebinding.yaml
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
kubeflow/helm/pipelines/templates/cache/deployer/deployment.yaml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
kubeflow/helm/pipelines/templates/cache/deployer/role.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
kubeflow/helm/pipelines/templates/cache/deployer/rolebinding.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
kubeflow/helm/pipelines/templates/cache/deployer/serviceaccount.yaml
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
kubeflow/helm/pipelines/templates/cache/server/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,17 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: {{ include "pipelines.fullname" . }}-cache-certs | ||
labels: | ||
{{- include "pipelines.labels" . | nindent 4 }} | ||
spec: | ||
commonName: kfp-cache-cert | ||
dnsNames: | ||
- {{ include "pipelines.fullname" . }}-cache-server | ||
- {{ include "pipelines.fullname" . }}-cache-server.{{ .Release.Namespace }} | ||
- {{ include "pipelines.fullname" . }}-cache-server.{{ .Release.Namespace }}.svc | ||
isCA: true | ||
issuerRef: | ||
kind: ClusterIssuer | ||
name: kubeflow-self-signing-issuer | ||
secretName: {{ include "pipelines.fullname" . }}-cache-server-tls |
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
32 changes: 32 additions & 0 deletions
32
kubeflow/helm/pipelines/templates/cache/server/mutatingwebhookconfiguration.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,32 @@ | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: MutatingWebhookConfiguration | ||
metadata: | ||
annotations: | ||
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "pipelines.fullname" . }}-cache-cert | ||
labels: | ||
{{- include "pipelines.labels" . | nindent 4 }} | ||
name: cache-webhook.pipelines.kubeflow.org | ||
webhooks: | ||
- admissionReviewVersions: | ||
- v1beta1 | ||
clientConfig: | ||
service: | ||
name: {{ include "pipelines.fullname" . }}-cache-server | ||
namespace: {{ .Release.Namespace }} | ||
path: /mutate | ||
failurePolicy: Ignore | ||
name: {{ include "pipelines.fullname" . }}-cache-server.{{ .Release.Namespace }}.svc | ||
objectSelector: | ||
matchLabels: | ||
pipelines.kubeflow.org/cache_enabled: "true" | ||
rules: | ||
- apiGroups: | ||
- "" | ||
apiVersions: | ||
- v1 | ||
operations: | ||
- CREATE | ||
resources: | ||
- pods | ||
sideEffects: None | ||
timeoutSeconds: 5 |