update kubeflow dip-catalog
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: cert
|
||||
spec:
|
||||
isCA: true
|
||||
commonName: $(podDefaultsServiceName).$(podDefaultsNamespace).svc
|
||||
dnsNames:
|
||||
- $(podDefaultsServiceName).$(podDefaultsNamespace).svc
|
||||
- $(podDefaultsServiceName).$(podDefaultsNamespace).svc.cluster.local
|
||||
issuerRef:
|
||||
kind: Issuer
|
||||
name: selfsigned-issuer
|
||||
secretName: webhook-certs
|
||||
|
||||
---
|
||||
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Issuer
|
||||
metadata:
|
||||
name: selfsigned-issuer
|
||||
spec:
|
||||
selfSigned: {}
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: deployment
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: admission-webhook
|
||||
args:
|
||||
- --tlsCertFile=/etc/webhook/certs/tls.crt
|
||||
- --tlsKeyFile=/etc/webhook/certs/tls.key
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
# This overlay uses CertManager to provision a certificate for the
|
||||
# PodDefaults admission controller. This is preferred over the old
|
||||
# way of using "bootstrap" which was running a shell script to create
|
||||
# the certificate.
|
||||
# TODO(jlewi): We should eventually refactor the manifests to delete
|
||||
# bootstrap and use certmanager by default.
|
||||
bases:
|
||||
- ../../base
|
||||
|
||||
resources:
|
||||
- certificate.yaml
|
||||
|
||||
namespace: kubeflow
|
||||
|
||||
namePrefix: admission-webhook-
|
||||
|
||||
commonLabels:
|
||||
app: poddefaults
|
||||
kustomize.component: poddefaults
|
||||
app.kubernetes.io/component: poddefaults
|
||||
app.kubernetes.io/name: poddefaults
|
||||
|
||||
patchesStrategicMerge:
|
||||
- mutating-webhook-configuration.yaml
|
||||
- deployment.yaml
|
||||
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
vars:
|
||||
# These vars are used to substitute in the namespace, service name and
|
||||
# deployment name into the mutating WebHookConfiguration.
|
||||
# Since its a CR kustomize isn't aware of those fields and won't
|
||||
# transform them.
|
||||
# We need the var names to be relatively unique so that when we
|
||||
# compose with other applications they won't conflict.
|
||||
- name: podDefaultsCertName
|
||||
objref:
|
||||
kind: Certificate
|
||||
group: cert-manager.io
|
||||
version: v1
|
||||
name: cert
|
||||
fieldref:
|
||||
fieldpath: metadata.name
|
||||
|
||||
configurations:
|
||||
- params.yaml
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
apiVersion: admissionregistration.k8s.io/v1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: mutating-webhook-configuration
|
||||
annotations:
|
||||
cert-manager.io/inject-ca-from: $(podDefaultsNamespace)/$(podDefaultsCertName)
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
varReference:
|
||||
- path: spec/commonName
|
||||
kind: Certificate
|
||||
- path: spec/dnsNames
|
||||
kind: Certificate
|
||||
- path: spec/issuerRef/name
|
||||
kind: Certificate
|
||||
- path: metadata/annotations
|
||||
kind: MutatingWebhookConfiguration
|
||||
nameReference:
|
||||
- kind: Issuer
|
||||
group: cert-manager.io
|
||||
fieldSpecs:
|
||||
- kind: Certificate
|
||||
group: cert-manager.io
|
||||
path: spec/issuerRef/name
|
||||
Reference in New Issue
Block a user