update kubeflow dip-catalog
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: kfp-exithandler-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfp-exithandler-controller-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
# Controller needs cluster access to all of the CRDs that it is responsible for managing.
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["runs", "customruns", "taskruns", "pipelineruns"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["runs/status", "customruns/status", "taskruns/status", "pipelineruns/status", "runs/finalizers", "customruns/finalizers",]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["custom.tekton.dev"]
|
||||
resources: ["exithandlers"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments", "deployments/finalizers"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
# This is the access that the controller needs on a per-namespace basis.
|
||||
name: kfp-exithandler-controller-tenant-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfp-exithandler-webhook-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
# The webhook needs to be able to list and update customresourcedefinitions,
|
||||
# mainly to update the webhook certificates.
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions", "customresourcedefinitions/status"]
|
||||
verbs: ["get", "list", "update", "patch", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["namespaces"]
|
||||
verbs: ["get", "list", "update", "patch", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
# The webhook performs a reconciliation on these two resources and continuously
|
||||
# updates configuration.
|
||||
resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
|
||||
# knative starts informers on these things, which is why we need get, list and watch.
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
resources: ["mutatingwebhookconfigurations"]
|
||||
# This mutating webhook is responsible for applying defaults to tekton objects
|
||||
# as they are received.
|
||||
resourceNames: ["webhook.exithandler.custom.tekton.dev"]
|
||||
# When there are changes to the configs or secrets, knative updates the mutatingwebhook config
|
||||
# with the updated certificates or the refreshed set of rules.
|
||||
verbs: ["get", "update"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments", "deployments/finalizers"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
resources: ["validatingwebhookconfigurations"]
|
||||
# validation.webhook.exithandler.custom.tekton.dev performs schema validation when you, for example, create ExitHandlers.
|
||||
resourceNames: ["validation.webhook.exithandler.custom.tekton.dev"]
|
||||
# When there are changes to the configs or secrets, knative updates the validatingwebhook config
|
||||
# with the updated certificates or the refreshed set of rules.
|
||||
verbs: ["get", "update"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfp-exithandler-leader-election
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
# We uses leases for leaderelection
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
Vendored
+68
@@ -0,0 +1,68 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfp-exithandler-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["get"]
|
||||
resourceNames: ["config-leader-election", "config-logging", "config-observability", "object-store-config", "cache-config"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["list", "watch"]
|
||||
# The webhook needs access to these configmaps for logging information.
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["get"]
|
||||
resourceNames: ["config-logging", "config-observability", "config-leader-election", "object-store-config", "cache-config"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["list", "watch"]
|
||||
# The webhook daemon makes a reconciliation loop on kfp-exithandler-webhook-certs. Whenever
|
||||
# the secret changes it updates the webhook configurations with the certificates
|
||||
# stored in the secret.
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "update"]
|
||||
resourceNames: ["kfp-exithandler-webhook-certs"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: kfp-exithandler-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfp-exithandler-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: kfp-exithandler-controller
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: kfp-exithandler-webhook
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
# Copyright 2020 The Knative Authors
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfp-exithandler-controller-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfp-exithandler-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfp-exithandler-controller-cluster-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
# If this ClusterRoleBinding is replaced with a RoleBinding
|
||||
# then the ClusterRole would be namespaced. The access described by
|
||||
# the kfp-exithandler-controller-tenant-access ClusterRole would
|
||||
# be scoped to individual tenant namespaces.
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfp-exithandler-controller-tenant-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfp-exithandler-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfp-exithandler-controller-tenant-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfp-exithandler-controller-leaderelection
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfp-exithandler-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfp-exithandler-leader-election
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfp-exithandler-webhook-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfp-exithandler-webhook-cluster-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfp-exithandler-webhook-leaderelection
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfp-exithandler-leader-election
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: exithandlers.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
version: "devel"
|
||||
spec:
|
||||
group: custom.tekton.dev
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
served: true
|
||||
storage: true
|
||||
# Opt into the status subresource so metadata.generation
|
||||
# starts to increment
|
||||
subresources:
|
||||
status: {}
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
# One can use x-kubernetes-preserve-unknown-fields: true
|
||||
# at the root of the schema (and inside any properties, additionalProperties)
|
||||
# to get the traditional CRD behaviour that nothing is pruned, despite
|
||||
# setting spec.preserveUnknownProperties: false.
|
||||
#
|
||||
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
|
||||
# See issue: https://github.com/knative/serving/issues/912
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
names:
|
||||
kind: ExitHandler
|
||||
plural: exithandlers
|
||||
categories:
|
||||
- tekton
|
||||
- tekton-pipelines
|
||||
- openshift-pipelines
|
||||
scope: Namespaced
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kfp-exithandler-controller
|
||||
labels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
# tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# labels below are related to istio and should not be used for resource lookup
|
||||
version: "devel"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
|
||||
labels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
# tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# labels below are related to istio and should not be used for resource lookup
|
||||
app: kfp-exithandler-controller
|
||||
version: "devel"
|
||||
spec:
|
||||
serviceAccountName: kfp-exithandler-controller
|
||||
containers:
|
||||
- name: kfp-exithandler-controller
|
||||
image: tekton-exithandler-controller:dummy
|
||||
env:
|
||||
- name: SYSTEM_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: CONFIG_LEADERELECTION_NAME
|
||||
value: config-leader-election
|
||||
- name: CONFIG_LOGGING_NAME
|
||||
value: config-logging
|
||||
- name: CONFIG_OBSERVABILITY_NAME
|
||||
value: config-observability
|
||||
- name: METRICS_DOMAIN
|
||||
value: tekton.dev/pipeline
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsNonRoot: true
|
||||
runAsGroup: 65532
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: kfp-exithandler-webhook-certs
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# The data is populated at install time.
|
||||
|
||||
---
|
||||
apiVersion: admissionregistration.k8s.io/v1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: validation.webhook.exithandler.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
webhooks:
|
||||
- admissionReviewVersions:
|
||||
- v1beta1
|
||||
clientConfig:
|
||||
service:
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
failurePolicy: Fail
|
||||
sideEffects: None
|
||||
name: validation.webhook.exithandler.custom.tekton.dev
|
||||
|
||||
---
|
||||
apiVersion: admissionregistration.k8s.io/v1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: webhook.exithandler.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
webhooks:
|
||||
- admissionReviewVersions:
|
||||
- v1beta1
|
||||
clientConfig:
|
||||
service:
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
failurePolicy: Fail
|
||||
sideEffects: None
|
||||
name: webhook.exithandler.custom.tekton.dev
|
||||
|
||||
Vendored
+122
@@ -0,0 +1,122 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
version: "devel"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
app: tekton-pipelines-webhook
|
||||
version: "devel"
|
||||
spec:
|
||||
serviceAccountName: kfp-exithandler-webhook
|
||||
containers:
|
||||
- name: webhook
|
||||
image: tekton-exithandler-webhook:dummy
|
||||
env:
|
||||
- name: SYSTEM_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
# If you are changing these names, you will also need to update
|
||||
# the webhook's Role in 200-role.yaml to include the new
|
||||
# values in the "configmaps" "get" rule.
|
||||
- name: CONFIG_LOGGING_NAME
|
||||
value: config-logging
|
||||
- name: CONFIG_OBSERVABILITY_NAME
|
||||
value: config-observability
|
||||
- name: CONFIG_LEADERELECTION_NAME
|
||||
value: config-leader-election
|
||||
- name: WEBHOOK_SERVICE_NAME
|
||||
value: kfp-exithandler-webhook
|
||||
- name: WEBHOOK_SECRET_NAME
|
||||
value: kfp-exithandler-webhook-certs
|
||||
- name: METRICS_DOMAIN
|
||||
value: tekton.dev/pipeline
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 9090
|
||||
- name: profiling
|
||||
containerPort: 8008
|
||||
- name: https-webhook
|
||||
containerPort: 8443
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsNonRoot: true
|
||||
runAsGroup: 65532
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
app: tekton-pipelines-webhook
|
||||
version: "devel"
|
||||
name: kfp-exithandler-webhook
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
ports:
|
||||
# Define metrics and profiling for them to be accessible within service meshes.
|
||||
- name: http-metrics
|
||||
port: 9090
|
||||
targetPort: 9090
|
||||
- name: http-profiling
|
||||
port: 8008
|
||||
targetPort: 8008
|
||||
- name: https-webhook
|
||||
port: 443
|
||||
targetPort: 8443
|
||||
selector:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- 200-serviceaccount.yaml
|
||||
- 201-clusterrole.yaml
|
||||
- 201-role.yaml
|
||||
- 201-rolebinding.yaml
|
||||
- 202-clusterrolebinding.yaml
|
||||
- 300-exithandler-crd.yaml
|
||||
- 500-controller.yaml
|
||||
- 500-webhook-configuration.yaml
|
||||
- 500-webhook.yaml
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: kfptask-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
Vendored
+122
@@ -0,0 +1,122 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfptask-controller-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
# Controller needs cluster access to all of the CRDs that it is responsible for managing.
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["runs", "customruns", "taskruns", "pipelineruns"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["runs/status", "customruns/status", "taskruns/status", "pipelineruns/status", "runs/finalizers", "customruns/finalizers",]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["custom.tekton.dev"]
|
||||
resources: ["kfptasks"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments", "deployments/finalizers"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes", "persistentvolumeclaims"]
|
||||
verbs: ["*"]
|
||||
|
||||
# Controller needs permission to emit events associated with Run CRs.
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
|
||||
# driver needs to access configmaps to get configuration
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["get", "watch", "list"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
# This is the access that the controller needs on a per-namespace basis.
|
||||
name: kfptask-controller-tenant-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfptask-webhook-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
# The webhook needs to be able to list and update customresourcedefinitions,
|
||||
# mainly to update the webhook certificates.
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions", "customresourcedefinitions/status"]
|
||||
verbs: ["get", "list", "update", "patch", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["namespaces"]
|
||||
verbs: ["get", "list", "update", "patch", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
# The webhook performs a reconciliation on these two resources and continuously
|
||||
# updates configuration.
|
||||
resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
|
||||
# knative starts informers on these things, which is why we need get, list and watch.
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
resources: ["mutatingwebhookconfigurations"]
|
||||
# This mutating webhook is responsible for applying defaults to tekton objects
|
||||
# as they are received.
|
||||
resourceNames: ["webhook.kfptask.custom.tekton.dev"]
|
||||
# When there are changes to the configs or secrets, knative updates the mutatingwebhook config
|
||||
# with the updated certificates or the refreshed set of rules.
|
||||
verbs: ["get", "update"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments", "deployments/finalizers"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
resources: ["validatingwebhookconfigurations"]
|
||||
# validation.webhook.kfptask.custom.tekton.dev performs schema validation when you, for example, create KfpTasks.
|
||||
resourceNames: ["validation.webhook.kfptask.custom.tekton.dev"]
|
||||
# When there are changes to the configs or secrets, knative updates the validatingwebhook config
|
||||
# with the updated certificates or the refreshed set of rules.
|
||||
verbs: ["get", "update"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfptask-leader-election
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
# We uses leases for leaderelection
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
Vendored
+96
@@ -0,0 +1,96 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfptask-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["get"]
|
||||
resourceNames: ["config-leader-election", "config-logging", "config-observability", "object-store-config", "cache-config"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes", persistentvolumeclaims]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["create", "delete", "get"]
|
||||
- apiGroups: [""]
|
||||
resources: ["pods", "pods/exec", "pods/log", "services"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["", "apps", "extensions"]
|
||||
resources: ["deployments", "replicasets"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["kubeflow.org"]
|
||||
resources: ["*"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["machinelearning.seldon.io"]
|
||||
resources: ["seldondeployments"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["list", "watch"]
|
||||
# The webhook needs access to these configmaps for logging information.
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["get"]
|
||||
resourceNames: ["config-logging", "config-observability", "config-leader-election", "object-store-config", "cache-config"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["list", "watch"]
|
||||
# The webhook daemon makes a reconciliation loop on kfptask-webhook-certs. Whenever
|
||||
# the secret changes it updates the webhook configurations with the certificates
|
||||
# stored in the secret.
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "update"]
|
||||
resourceNames: ["kfptask-webhook-certs"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
Vendored
+49
@@ -0,0 +1,49 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: kfptask-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfptask-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: kfptask-controller
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: kfptask-webhook
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
# Copyright 2020 The Knative Authors
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfptask-controller-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfptask-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfptask-controller-cluster-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
# If this ClusterRoleBinding is replaced with a RoleBinding
|
||||
# then the ClusterRole would be namespaced. The access described by
|
||||
# the kfptask-controller-tenant-access ClusterRole would
|
||||
# be scoped to individual tenant namespaces.
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfptask-controller-tenant-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfptask-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfptask-controller-tenant-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfptask-controller-leaderelection
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfptask-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfptask-leader-election
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfptask-webhook-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfptask-webhook-cluster-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: kfptask-webhook-leaderelection
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: kfptask-leader-election
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
Vendored
+52
@@ -0,0 +1,52 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: kfptasks.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
version: "devel"
|
||||
spec:
|
||||
group: custom.tekton.dev
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
served: true
|
||||
storage: true
|
||||
# Opt into the status subresource so metadata.generation
|
||||
# starts to increment
|
||||
subresources:
|
||||
status: {}
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
# One can use x-kubernetes-preserve-unknown-fields: true
|
||||
# at the root of the schema (and inside any properties, additionalProperties)
|
||||
# to get the traditional CRD behaviour that nothing is pruned, despite
|
||||
# setting spec.preserveUnknownProperties: false.
|
||||
#
|
||||
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
|
||||
# See issue: https://github.com/knative/serving/issues/912
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
names:
|
||||
kind: KfpTask
|
||||
plural: kfptasks
|
||||
categories:
|
||||
- tekton
|
||||
- tekton-pipelines
|
||||
- openshift-pipelines
|
||||
scope: Namespaced
|
||||
Vendored
+79
@@ -0,0 +1,79 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kfptask-controller
|
||||
labels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
# tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# labels below are related to istio and should not be used for resource lookup
|
||||
version: "devel"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
|
||||
labels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
# tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# labels below are related to istio and should not be used for resource lookup
|
||||
app: kfptask-controller
|
||||
version: "devel"
|
||||
spec:
|
||||
serviceAccountName: kfptask-controller
|
||||
containers:
|
||||
- name: kfptask-controller
|
||||
image: tekton-kfptask-controller:dummy
|
||||
env:
|
||||
- name: SYSTEM_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: CONFIG_LEADERELECTION_NAME
|
||||
value: config-leader-election
|
||||
- name: CONFIG_LOGGING_NAME
|
||||
value: config-logging
|
||||
- name: CONFIG_OBSERVABILITY_NAME
|
||||
value: config-observability
|
||||
- name: METRICS_DOMAIN
|
||||
value: tekton.dev/pipeline
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsNonRoot: true
|
||||
runAsGroup: 65532
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: kfptask-webhook-certs
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# The data is populated at install time.
|
||||
|
||||
---
|
||||
apiVersion: admissionregistration.k8s.io/v1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: validation.webhook.kfptask.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
webhooks:
|
||||
- admissionReviewVersions:
|
||||
- v1beta1
|
||||
clientConfig:
|
||||
service:
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
failurePolicy: Fail
|
||||
sideEffects: None
|
||||
name: validation.webhook.kfptask.custom.tekton.dev
|
||||
|
||||
---
|
||||
apiVersion: admissionregistration.k8s.io/v1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: webhook.kfptask.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
webhooks:
|
||||
- admissionReviewVersions:
|
||||
- v1beta1
|
||||
clientConfig:
|
||||
service:
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
failurePolicy: Fail
|
||||
sideEffects: None
|
||||
name: webhook.kfptask.custom.tekton.dev
|
||||
|
||||
Vendored
+122
@@ -0,0 +1,122 @@
|
||||
# Copyright 2023 kubeflow.org
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
version: "devel"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
app: tekton-pipelines-webhook
|
||||
version: "devel"
|
||||
spec:
|
||||
serviceAccountName: kfptask-webhook
|
||||
containers:
|
||||
- name: webhook
|
||||
image: tekton-kfptask-webhook:dummy
|
||||
env:
|
||||
- name: SYSTEM_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
# If you are changing these names, you will also need to update
|
||||
# the webhook's Role in 200-role.yaml to include the new
|
||||
# values in the "configmaps" "get" rule.
|
||||
- name: CONFIG_LOGGING_NAME
|
||||
value: config-logging
|
||||
- name: CONFIG_OBSERVABILITY_NAME
|
||||
value: config-observability
|
||||
- name: CONFIG_LEADERELECTION_NAME
|
||||
value: config-leader-election
|
||||
- name: WEBHOOK_SERVICE_NAME
|
||||
value: kfptask-webhook
|
||||
- name: WEBHOOK_SECRET_NAME
|
||||
value: kfptask-webhook-certs
|
||||
- name: METRICS_DOMAIN
|
||||
value: tekton.dev/pipeline
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 9090
|
||||
- name: profiling
|
||||
containerPort: 8008
|
||||
- name: https-webhook
|
||||
containerPort: 8443
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsNonRoot: true
|
||||
runAsGroup: 65532
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
app: tekton-pipelines-webhook
|
||||
version: "devel"
|
||||
name: kfptask-webhook
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
ports:
|
||||
# Define metrics and profiling for them to be accessible within service meshes.
|
||||
- name: http-metrics
|
||||
port: 9090
|
||||
targetPort: 9090
|
||||
- name: http-profiling
|
||||
port: 8008
|
||||
targetPort: 8008
|
||||
- name: https-webhook
|
||||
port: 443
|
||||
targetPort: 8443
|
||||
selector:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: kfp-tekton
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- 200-serviceaccount.yaml
|
||||
- 201-clusterrole.yaml
|
||||
- 201-role.yaml
|
||||
- 201-rolebinding.yaml
|
||||
- 202-clusterrolebinding.yaml
|
||||
- 300-kfptask-crd.yaml
|
||||
- 500-controller.yaml
|
||||
- 500-webhook-configuration.yaml
|
||||
- 500-webhook.yaml
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- pipeline-loops
|
||||
- exit-handler
|
||||
- kfptask
|
||||
# Deprecated controller
|
||||
# - driver-controller
|
||||
|
||||
namespace: tekton-pipelines
|
||||
|
||||
images:
|
||||
- name: quay.io/aipipeline/pipelineloop-controller
|
||||
newTag: 1.9.2
|
||||
- name: quay.io/aipipeline/pipelineloop-webhook
|
||||
newTag: 1.9.2
|
||||
- name: tekton-exithandler-controller
|
||||
newName: quay.io/aipipeline/tekton-exithandler-controller
|
||||
newTag: 2.0.5
|
||||
- name: tekton-exithandler-webhook
|
||||
newName: quay.io/aipipeline/tekton-exithandler-webhook
|
||||
newTag: 2.0.5
|
||||
- name: tekton-kfptask-controller
|
||||
newName: quay.io/aipipeline/tekton-kfptask-controller
|
||||
newTag: 2.0.5
|
||||
- name: tekton-kfptask-webhook
|
||||
newName: quay.io/aipipeline/tekton-kfptask-webhook
|
||||
newTag: 2.0.5
|
||||
# Deprecated controller
|
||||
# - name: kfp-v2-dev-driver-controller
|
||||
# newName: quay.io/aipipeline/tekton-driver
|
||||
# newTag: 2.0.3
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: tekton-pipelineloop-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: tekton-pipelineloop-controller-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
rules:
|
||||
# Controller needs cluster access to all of the CRDs that it is responsible for managing.
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["runs", "customruns", "taskruns", "pipelineruns"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["runs/status", "customruns/status", "taskruns/status", "pipelineruns/status", "runs/finalizers", "customruns/finalizers",]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["custom.tekton.dev"]
|
||||
resources: ["pipelineloops", "kfptasks"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments", "deployments/finalizers"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
# This is the access that the controller needs on a per-namespace basis.
|
||||
name: tekton-pipelineloop-controller-tenant-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: tekton-pipelineloop-webhook-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
rules:
|
||||
# The webhook needs to be able to list and update customresourcedefinitions,
|
||||
# mainly to update the webhook certificates.
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions", "customresourcedefinitions/status"]
|
||||
verbs: ["get", "list", "update", "patch", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["namespaces"]
|
||||
verbs: ["get", "list", "update", "patch", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
# The webhook performs a reconciliation on these two resources and continuously
|
||||
# updates configuration.
|
||||
resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
|
||||
# knative starts informers on these things, which is why we need get, list and watch.
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
resources: ["mutatingwebhookconfigurations"]
|
||||
# This mutating webhook is responsible for applying defaults to tekton objects
|
||||
# as they are received.
|
||||
resourceNames: ["webhook.pipelineloop.custom.tekton.dev"]
|
||||
# When there are changes to the configs or secrets, knative updates the mutatingwebhook config
|
||||
# with the updated certificates or the refreshed set of rules.
|
||||
verbs: ["get", "update"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments", "deployments/finalizers"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
resources: ["validatingwebhookconfigurations"]
|
||||
# validation.webhook.pipelineloop.custom.tekton.dev performs schema validation when you, for example, create PipelineLoops.
|
||||
resourceNames: ["validation.webhook.pipelineloop.custom.tekton.dev"]
|
||||
# When there are changes to the configs or secrets, knative updates the validatingwebhook config
|
||||
# with the updated certificates or the refreshed set of rules.
|
||||
verbs: ["get", "update"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: tekton-pipelineloop-leader-election
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
rules:
|
||||
# We uses leases for leaderelection
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
|
||||
Vendored
+54
@@ -0,0 +1,54 @@
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: tekton-pipelineloop-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["get"]
|
||||
resourceNames: ["config-leader-election", "config-logging", "config-observability", "object-store-config"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["list", "watch"]
|
||||
# The webhook needs access to these configmaps for logging information.
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["get"]
|
||||
resourceNames: ["config-logging", "config-observability", "config-leader-election", "object-store-config"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["list", "watch"]
|
||||
# The webhook daemon makes a reconciliation loop on tekton-pipelineloop-webhook-certs. Whenever
|
||||
# the secret changes it updates the webhook configurations with the certificates
|
||||
# stored in the secret.
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "update"]
|
||||
resourceNames: ["tekton-pipelineloop-webhook-certs"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["tekton-pipelines", "openshift-pipelines"]
|
||||
verbs: ["use"]
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: tekton-pipelineloop-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: tekton-pipelineloop-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: tekton-pipelineloop-controller
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: tekton-pipelineloop-webhook
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: tekton-pipelineloop-controller-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: tekton-pipelineloop-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: tekton-pipelineloop-controller-cluster-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
# If this ClusterRoleBinding is replaced with a RoleBinding
|
||||
# then the ClusterRole would be namespaced. The access described by
|
||||
# the tekton-pipelineloop-controller-tenant-access ClusterRole would
|
||||
# be scoped to individual tenant namespaces.
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: tekton-pipelineloop-controller-tenant-access
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: tekton-pipelineloop-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: tekton-pipelineloop-controller-tenant-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: tekton-pipelineloop-controller-leaderelection
|
||||
labels:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: tekton-pipelineloop-controller
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: tekton-pipelineloop-leader-election
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: tekton-pipelineloop-webhook-cluster-access
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: tekton-pipelineloop-webhook-cluster-access
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: tekton-pipelineloop-webhook-leaderelection
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: tekton-pipelineloop-leader-election
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
# Copyright 2020 The Knative Authors
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: object-store-config
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipelines-loops
|
||||
data:
|
||||
enable: "false"
|
||||
defaultBucketName: "pipelineloop-logs"
|
||||
ibmStyleCredentials: "false"
|
||||
region: "us-south"
|
||||
accessKey: "minio"
|
||||
secretKey: "minio123"
|
||||
# Below are IBM cloud specific credentials, available if the flag ibmStyleCredentials is true.
|
||||
apiKey: "<APIKEY-dummy-1231231231-123abcdefgh>"
|
||||
serviceInstanceID: "crn:v1:bluemix:public:cloud-object-storage:global:a/ID-dummy-1231231231-123abcdefgh:dummy-values::"
|
||||
serviceEndpoint: "http://minio-service.kubeflow:9000"
|
||||
authEndpoint: "https://iam.cloud.ibm.com/identity/token"
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
# Copyright 2020 The Knative Authors
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: cache-config
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipelines-loops
|
||||
data:
|
||||
disabled: "true"
|
||||
driver: "mysql"
|
||||
host: "mysql.kubeflow.svc.cluster.local"
|
||||
port: "3306"
|
||||
dbName: "cachedb"
|
||||
user: "root"
|
||||
password: ""
|
||||
timeout: "6m"
|
||||
extraParams: ""
|
||||
mysqlDBGroupConcatMaxLen: "4194304"
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: pipelineloops.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
version: "devel"
|
||||
spec:
|
||||
group: custom.tekton.dev
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
served: true
|
||||
storage: true
|
||||
# Opt into the status subresource so metadata.generation
|
||||
# starts to increment
|
||||
subresources:
|
||||
status: {}
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
# One can use x-kubernetes-preserve-unknown-fields: true
|
||||
# at the root of the schema (and inside any properties, additionalProperties)
|
||||
# to get the traditional CRD behaviour that nothing is pruned, despite
|
||||
# setting spec.preserveUnknownProperties: false.
|
||||
#
|
||||
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
|
||||
# See issue: https://github.com/knative/serving/issues/912
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
names:
|
||||
kind: PipelineLoop
|
||||
plural: pipelineloops
|
||||
categories:
|
||||
- tekton
|
||||
- tekton-pipelines
|
||||
- openshift-pipelines
|
||||
scope: Namespaced
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
# Copyright 2020 The Knative Authors
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: breaktasks.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
version: "devel"
|
||||
spec:
|
||||
group: custom.tekton.dev
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
served: true
|
||||
storage: true
|
||||
# Opt into the status subresource so metadata.generation
|
||||
# starts to increment
|
||||
subresources:
|
||||
status: {}
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
# One can use x-kubernetes-preserve-unknown-fields: true
|
||||
# at the root of the schema (and inside any properties, additionalProperties)
|
||||
# to get the traditional CRD behaviour that nothing is pruned, despite
|
||||
# setting spec.preserveUnknownProperties: false.
|
||||
#
|
||||
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
|
||||
# See issue: https://github.com/knative/serving/issues/912
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
names:
|
||||
kind: BreakTask
|
||||
plural: breaktasks
|
||||
categories:
|
||||
- tekton
|
||||
- tekton-pipelines
|
||||
scope: Namespaced
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: tekton-pipelineloop-controller
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
# tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# labels below are related to istio and should not be used for resource lookup
|
||||
version: "devel"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
|
||||
labels:
|
||||
app.kubernetes.io/name: controller
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
# tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# labels below are related to istio and should not be used for resource lookup
|
||||
app: tekton-pipelineloop-controller
|
||||
version: "devel"
|
||||
spec:
|
||||
serviceAccountName: tekton-pipelineloop-controller
|
||||
containers:
|
||||
- name: tekton-pipelineloop-controller
|
||||
image: quay.io/aipipeline/pipelineloop-controller:nightly
|
||||
env:
|
||||
- name: KFPV2
|
||||
value: "true"
|
||||
- name: SYSTEM_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: CONFIG_LEADERELECTION_NAME
|
||||
value: config-leader-election
|
||||
- name: CONFIG_LOGGING_NAME
|
||||
value: config-logging
|
||||
- name: CONFIG_OBSERVABILITY_NAME
|
||||
value: config-observability
|
||||
- name: METRICS_DOMAIN
|
||||
value: tekton.dev/pipeline
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsNonRoot: true
|
||||
runAsGroup: 65532
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: tekton-pipelineloop-webhook-certs
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
# The data is populated at install time.
|
||||
|
||||
---
|
||||
apiVersion: admissionregistration.k8s.io/v1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: validation.webhook.pipelineloop.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
webhooks:
|
||||
- admissionReviewVersions:
|
||||
- v1beta1
|
||||
clientConfig:
|
||||
service:
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
failurePolicy: Fail
|
||||
sideEffects: None
|
||||
name: validation.webhook.pipelineloop.custom.tekton.dev
|
||||
|
||||
---
|
||||
apiVersion: admissionregistration.k8s.io/v1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: webhook.pipelineloop.custom.tekton.dev
|
||||
labels:
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
webhooks:
|
||||
- admissionReviewVersions:
|
||||
- v1beta1
|
||||
clientConfig:
|
||||
service:
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
failurePolicy: Fail
|
||||
sideEffects: None
|
||||
name: webhook.pipelineloop.custom.tekton.dev
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
version: "devel"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
app: tekton-pipelines-webhook
|
||||
version: "devel"
|
||||
spec:
|
||||
serviceAccountName: tekton-pipelineloop-webhook
|
||||
containers:
|
||||
- name: webhook
|
||||
image: quay.io/aipipeline/pipelineloop-webhook:nightly
|
||||
env:
|
||||
- name: SYSTEM_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
# If you are changing these names, you will also need to update
|
||||
# the webhook's Role in 200-role.yaml to include the new
|
||||
# values in the "configmaps" "get" rule.
|
||||
- name: CONFIG_LOGGING_NAME
|
||||
value: config-logging
|
||||
- name: CONFIG_OBSERVABILITY_NAME
|
||||
value: config-observability
|
||||
- name: CONFIG_LEADERELECTION_NAME
|
||||
value: config-leader-election
|
||||
- name: WEBHOOK_SERVICE_NAME
|
||||
value: tekton-pipelineloop-webhook
|
||||
- name: WEBHOOK_SECRET_NAME
|
||||
value: tekton-pipelineloop-webhook-certs
|
||||
- name: METRICS_DOMAIN
|
||||
value: tekton.dev/pipeline
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 9090
|
||||
- name: profiling
|
||||
containerPort: 8008
|
||||
- name: https-webhook
|
||||
containerPort: 8443
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsNonRoot: true
|
||||
runAsGroup: 65532
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/version: "devel"
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
pipeline.tekton.dev/release: "devel"
|
||||
app: tekton-pipelines-webhook
|
||||
version: "devel"
|
||||
name: tekton-pipelineloop-webhook
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
ports:
|
||||
# Define metrics and profiling for them to be accessible within service meshes.
|
||||
- name: http-metrics
|
||||
port: 9090
|
||||
targetPort: 9090
|
||||
- name: http-profiling
|
||||
port: 8008
|
||||
targetPort: 8008
|
||||
- name: https-webhook
|
||||
port: 443
|
||||
targetPort: 8443
|
||||
selector:
|
||||
app.kubernetes.io/name: webhook
|
||||
app.kubernetes.io/component: webhook
|
||||
app.kubernetes.io/instance: default
|
||||
app.kubernetes.io/part-of: tekton-pipeline-loops
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- 200-serviceaccount.yaml
|
||||
- 201-clusterrole.yaml
|
||||
- 201-role.yaml
|
||||
- 201-rolebinding.yaml
|
||||
- 202-clusterrolebinding.yaml
|
||||
- 203-object-store-config.yaml
|
||||
- 204-cache-config.yaml
|
||||
- 300-pipelineloop.yaml
|
||||
- 301-breaktask.yaml
|
||||
- 500-controller.yaml
|
||||
- 500-webhook-configuration.yaml
|
||||
- 500-webhook.yaml
|
||||
Reference in New Issue
Block a user