mirror of
https://github.com/autistic-symposium/ml-quantum-tensorflow-py.git
synced 2025-08-15 01:15:24 -04:00
kustomize
This commit is contained in:
parent
ae72757665
commit
aa0e248a45
330 changed files with 27690 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: cluster-role-binding
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: cluster-role
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: service-account
|
17
kubeflow/kfapp/kustomize/webhook/base/cluster-role.yaml
Normal file
17
kubeflow/kfapp/kustomize/webhook/base/cluster-role.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: cluster-role
|
||||
rules:
|
||||
- apiGroups:
|
||||
- kubeflow.org
|
||||
resources:
|
||||
- poddefaults
|
||||
verbs:
|
||||
- get
|
||||
- watch
|
||||
- list
|
||||
- update
|
||||
- create
|
||||
- patch
|
||||
- delete
|
51
kubeflow/kfapp/kustomize/webhook/base/crd.yaml
Normal file
51
kubeflow/kfapp/kustomize/webhook/base/crd.yaml
Normal file
|
@ -0,0 +1,51 @@
|
|||
apiVersion: apiextensions.k8s.io/v1beta1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: poddefaults.kubeflow.org
|
||||
spec:
|
||||
group: kubeflow.org
|
||||
names:
|
||||
kind: PodDefault
|
||||
plural: poddefaults
|
||||
singular: poddefault
|
||||
scope: Namespaced
|
||||
version: v1alpha1
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
apiVersion:
|
||||
type: string
|
||||
kind:
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
properties:
|
||||
desc:
|
||||
type: string
|
||||
serviceAccountName:
|
||||
type: string
|
||||
env:
|
||||
items:
|
||||
type: object
|
||||
type: array
|
||||
envFrom:
|
||||
items:
|
||||
type: object
|
||||
type: array
|
||||
selector:
|
||||
type: object
|
||||
volumeMounts:
|
||||
items:
|
||||
type: object
|
||||
type: array
|
||||
volumes:
|
||||
items:
|
||||
type: object
|
||||
type: array
|
||||
required:
|
||||
- selector
|
||||
type: object
|
||||
status:
|
||||
type: object
|
||||
type: object
|
19
kubeflow/kfapp/kustomize/webhook/base/deployment.yaml
Normal file
19
kubeflow/kfapp/kustomize/webhook/base/deployment.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: deployment
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- image: gcr.io/kubeflow-images-public/admission-webhook:v20190520-v0-139-gcee39dbc-dirty-0d8f4c
|
||||
name: admission-webhook
|
||||
volumeMounts:
|
||||
- mountPath: /etc/webhook/certs
|
||||
name: webhook-cert
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: webhook-cert
|
||||
secret:
|
||||
secretName: webhook-certs
|
||||
serviceAccountName: service-account
|
48
kubeflow/kfapp/kustomize/webhook/base/kustomization.yaml
Normal file
48
kubeflow/kfapp/kustomize/webhook/base/kustomization.yaml
Normal file
|
@ -0,0 +1,48 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster-role-binding.yaml
|
||||
- cluster-role.yaml
|
||||
- deployment.yaml
|
||||
- mutating-webhook-configuration.yaml
|
||||
- service-account.yaml
|
||||
- service.yaml
|
||||
- crd.yaml
|
||||
commonLabels:
|
||||
kustomize.component: admission-webhook
|
||||
app: admission-webhook
|
||||
namePrefix: admission-webhook-
|
||||
images:
|
||||
- name: gcr.io/kubeflow-images-public/admission-webhook
|
||||
newName: gcr.io/kubeflow-images-public/admission-webhook
|
||||
newTag: v20190520-v0-139-gcee39dbc-dirty-0d8f4c
|
||||
namespace: kubeflow
|
||||
configMapGenerator:
|
||||
- name: admission-webhook-parameters
|
||||
env: params.env
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
vars:
|
||||
- name: namespace
|
||||
objref:
|
||||
kind: ConfigMap
|
||||
name: admission-webhook-parameters
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: data.namespace
|
||||
- name: serviceName
|
||||
objref:
|
||||
kind: Service
|
||||
name: service
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: metadata.name
|
||||
- name: deploymentName
|
||||
objref:
|
||||
kind: Deployment
|
||||
name: deployment
|
||||
apiVersion: extensions/v1beta1
|
||||
fieldref:
|
||||
fieldpath: metadata.name
|
||||
configurations:
|
||||
- params.yaml
|
|
@ -0,0 +1,21 @@
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: mutating-webhook-configuration
|
||||
webhooks:
|
||||
- clientConfig:
|
||||
caBundle: ""
|
||||
service:
|
||||
name: $(serviceName)
|
||||
namespace: $(namespace)
|
||||
path: /apply-poddefault
|
||||
name: $(deploymentName).kubeflow.org
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
apiVersions:
|
||||
- v1
|
||||
operations:
|
||||
- CREATE
|
||||
resources:
|
||||
- pods
|
1
kubeflow/kfapp/kustomize/webhook/base/params.env
Normal file
1
kubeflow/kfapp/kustomize/webhook/base/params.env
Normal file
|
@ -0,0 +1 @@
|
|||
namespace=kubeflow
|
7
kubeflow/kfapp/kustomize/webhook/base/params.yaml
Normal file
7
kubeflow/kfapp/kustomize/webhook/base/params.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
varReference:
|
||||
- path: webhooks/clientConfig/service/namespace
|
||||
kind: MutatingWebhookConfiguration
|
||||
- path: webhooks/clientConfig/service/name
|
||||
kind: MutatingWebhookConfiguration
|
||||
- path: webhooks/name
|
||||
kind: MutatingWebhookConfiguration
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: service-account
|
8
kubeflow/kfapp/kustomize/webhook/base/service.yaml
Normal file
8
kubeflow/kfapp/kustomize/webhook/base/service.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: service
|
||||
spec:
|
||||
ports:
|
||||
- port: 443
|
||||
targetPort: 443
|
5
kubeflow/kfapp/kustomize/webhook/kustomization.yaml
Normal file
5
kubeflow/kfapp/kustomize/webhook/kustomization.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
bases:
|
||||
- base
|
||||
kind: Kustomization
|
||||
namespace: kubeflow
|
Loading…
Add table
Add a link
Reference in a new issue