diff --git a/helm-charts/seldon-core-operator/templates/certificate_seldon-serving-cert.yaml b/helm-charts/seldon-core-operator/templates/certificate_seldon-serving-cert.yaml index 2f9b27bb72..013759a300 100644 --- a/helm-charts/seldon-core-operator/templates/certificate_seldon-serving-cert.yaml +++ b/helm-charts/seldon-core-operator/templates/certificate_seldon-serving-cert.yaml @@ -2,19 +2,12 @@ apiVersion: certmanager.k8s.io/v1alpha1 kind: Certificate metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-serving-cert namespace: '{{ .Release.Namespace }}' spec: commonName: '{{- printf "seldon-webhook-service.%s.svc" .Release.Namespace -}}' - dnsNames: - - '{{- printf "seldon-webhook-service.%s.svc.cluster.local" .Release.Namespace -}}' - issuerRef: - kind: Issuer - name: seldon-selfsigned-issuer + dnsNames: ['{{- printf "seldon-webhook-service.%s.svc.cluster.local" .Release.Namespace -}}'] + issuerRef: {kind: Issuer, name: seldon-selfsigned-issuer} secretName: seldon-webhook-server-cert {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-manager-role.yaml b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-manager-role.yaml index 1603b0c9cf..4e918c3bf1 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-manager-role.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-manager-role.yaml @@ -3,151 +3,49 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: creationTimestamp: null - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-manager-role rules: -- apiGroups: - - '' - resources: - - services - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - apps - resources: - - deployments - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - apps - resources: - - deployments/status - verbs: - - get - - patch - - update -- apiGroups: - - autoscaling - resources: - - horizontalpodautoscalers - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - autoscaling - resources: - - horizontalpodautoscalers/status - verbs: - - get - - patch - - update -- apiGroups: - - machinelearning.seldon.io - resources: - - seldondeployments - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - machinelearning.seldon.io - resources: - - seldondeployments/finalizers - verbs: - - get - - patch - - update -- apiGroups: - - machinelearning.seldon.io - resources: - - seldondeployments/status - verbs: - - get - - patch - - update -- apiGroups: - - networking.istio.io - resources: - - destinationrules - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - networking.istio.io - resources: - - destinationrules/status - verbs: - - get - - patch - - update -- apiGroups: - - networking.istio.io - resources: - - virtualservices - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - networking.istio.io - resources: - - virtualservices/status - verbs: - - get - - patch - - update -- apiGroups: - - v1 - resources: - - services - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - v1 - resources: - - services/status - verbs: - - get - - patch - - update +- apiGroups: [''] + resources: [services] + verbs: [create, delete, get, list, patch, update, watch] +- apiGroups: [apps] + resources: [deployments] + verbs: [create, delete, get, list, patch, update, watch] +- apiGroups: [apps] + resources: [deployments/status] + verbs: [get, patch, update] +- apiGroups: [autoscaling] + resources: [horizontalpodautoscalers] + verbs: [create, delete, get, list, patch, update, watch] +- apiGroups: [autoscaling] + resources: [horizontalpodautoscalers/status] + verbs: [get, patch, update] +- apiGroups: [machinelearning.seldon.io] + resources: [seldondeployments] + verbs: [create, delete, get, list, patch, update, watch] +- apiGroups: [machinelearning.seldon.io] + resources: [seldondeployments/finalizers] + verbs: [get, patch, update] +- apiGroups: [machinelearning.seldon.io] + resources: [seldondeployments/status] + verbs: [get, patch, update] +- apiGroups: [networking.istio.io] + resources: [destinationrules] + verbs: [create, delete, get, list, patch, update, watch] +- apiGroups: [networking.istio.io] + resources: [destinationrules/status] + verbs: [get, patch, update] +- apiGroups: [networking.istio.io] + resources: [virtualservices] + verbs: [create, delete, get, list, patch, update, watch] +- apiGroups: [networking.istio.io] + resources: [virtualservices/status] + verbs: [get, patch, update] +- apiGroups: [v1] + resources: [services] + verbs: [create, delete, get, list, patch, update, watch] +- apiGroups: [v1] + resources: [services/status] + verbs: [get, patch, update] {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-manager-sas-role.yaml b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-manager-sas-role.yaml index 81a2816b56..3e87d32a99 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-manager-sas-role.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-manager-sas-role.yaml @@ -4,28 +4,14 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: creationTimestamp: null - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-manager-sas-role rules: -- apiGroups: - - '' - resources: - - secrets - verbs: - - get - - list - - watch -- apiGroups: - - '' - resources: - - serviceaccounts - verbs: - - get - - list - - watch +- apiGroups: [''] + resources: [secrets] + verbs: [get, list, watch] +- apiGroups: [''] + resources: [serviceaccounts] + verbs: [get, list, watch] {{- end }} {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-proxy-role.yaml b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-proxy-role.yaml index 4271244ff2..9977a23512 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-proxy-role.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-proxy-role.yaml @@ -1,22 +1,12 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-proxy-role rules: -- apiGroups: - - authentication.k8s.io - resources: - - tokenreviews - verbs: - - create -- apiGroups: - - authorization.k8s.io - resources: - - subjectaccessreviews - verbs: - - create +- apiGroups: [authentication.k8s.io] + resources: [tokenreviews] + verbs: [create] +- apiGroups: [authorization.k8s.io] + resources: [subjectaccessreviews] + verbs: [create] diff --git a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-spartakus-volunteer.yaml b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-spartakus-volunteer.yaml index 31bf33861c..1a69bf9747 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-spartakus-volunteer.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-spartakus-volunteer.yaml @@ -1,13 +1,9 @@ {{- if .Values.usageMetrics.enabled }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole -metadata: - name: seldon-spartakus-volunteer +metadata: {name: seldon-spartakus-volunteer} rules: -- apiGroups: - - '' - resources: - - nodes - verbs: - - list +- apiGroups: [''] + resources: [nodes] + verbs: [list] {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-manager-rolebinding.yaml b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-manager-rolebinding.yaml index 0ff8e1fbe3..013ec79bb7 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-manager-rolebinding.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-manager-rolebinding.yaml @@ -2,18 +2,9 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-manager-rolebinding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: seldon-manager-role +roleRef: {apiGroup: rbac.authorization.k8s.io, kind: ClusterRole, name: seldon-manager-role} subjects: -- kind: ServiceAccount - name: '{{ .Values.serviceAccount.name }}' - namespace: '{{ .Release.Namespace }}' +- {kind: ServiceAccount, name: '{{ .Values.serviceAccount.name }}', namespace: '{{ .Release.Namespace }}'} {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-manager-sas-rolebinding.yaml b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-manager-sas-rolebinding.yaml index e0d4085691..881ae59e9c 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-manager-sas-rolebinding.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-manager-sas-rolebinding.yaml @@ -3,19 +3,10 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-manager-sas-rolebinding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: seldon-manager-sas-role +roleRef: {apiGroup: rbac.authorization.k8s.io, kind: ClusterRole, name: seldon-manager-sas-role} subjects: -- kind: ServiceAccount - name: seldon-manager - namespace: '{{ .Release.Namespace }}' +- {kind: ServiceAccount, name: seldon-manager, namespace: '{{ .Release.Namespace }}'} {{- end }} {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-proxy-rolebinding.yaml b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-proxy-rolebinding.yaml index 8aa903d1ab..ffc80d4a3f 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-proxy-rolebinding.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-proxy-rolebinding.yaml @@ -1,17 +1,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-proxy-rolebinding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: seldon-proxy-role +roleRef: {apiGroup: rbac.authorization.k8s.io, kind: ClusterRole, name: seldon-proxy-role} subjects: -- kind: ServiceAccount - name: default - namespace: '{{ .Release.Namespace }}' +- {kind: ServiceAccount, name: default, namespace: '{{ .Release.Namespace }}'} diff --git a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-spartakus-volunteer.yaml b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-spartakus-volunteer.yaml index 90168a7d27..e398087899 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-spartakus-volunteer.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-spartakus-volunteer.yaml @@ -1,14 +1,8 @@ {{- if .Values.usageMetrics.enabled }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding -metadata: - name: seldon-spartakus-volunteer -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: seldon-spartakus-volunteer +metadata: {name: seldon-spartakus-volunteer} +roleRef: {apiGroup: rbac.authorization.k8s.io, kind: ClusterRole, name: seldon-spartakus-volunteer} subjects: -- kind: ServiceAccount - name: seldon-spartakus-volunteer - namespace: kube-system +- {kind: ServiceAccount, name: seldon-spartakus-volunteer, namespace: kube-system} {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/configmap_seldon-config.yaml b/helm-charts/seldon-core-operator/templates/configmap_seldon-config.yaml index befdf95e76..84b353d5a8 100644 --- a/helm-charts/seldon-core-operator/templates/configmap_seldon-config.yaml +++ b/helm-charts/seldon-core-operator/templates/configmap_seldon-config.yaml @@ -1,13 +1,7 @@ apiVersion: v1 -data: - credentials: "{\n \"gcs\" : {\n \"gcsCredentialFileName\": \"gcloud-application-credentials.json\"\n },\n \"s3\" : {\n \"s3AccessKeyIDName\": \"awsAccessKeyID\",\n \"s3SecretAccessKeyName\": \"awsSecretAccessKey\"\n }\n}" +data: {credentials: "{\n \"gcs\" : {\n \"gcsCredentialFileName\": \"gcloud-application-credentials.json\"\n },\n \"s3\" : {\n \"s3AccessKeyIDName\": \"awsAccessKeyID\",\n \"s3SecretAccessKeyName\": \"awsSecretAccessKey\"\n }\n}"} kind: ConfigMap metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' - control-plane: seldon-controller-manager + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}', control-plane: seldon-controller-manager} name: seldon-config namespace: '{{ .Release.Namespace }}' diff --git a/helm-charts/seldon-core-operator/templates/configmap_seldon-spartakus-config.yaml b/helm-charts/seldon-core-operator/templates/configmap_seldon-spartakus-config.yaml index 4526abd86f..f711f67840 100644 --- a/helm-charts/seldon-core-operator/templates/configmap_seldon-spartakus-config.yaml +++ b/helm-charts/seldon-core-operator/templates/configmap_seldon-spartakus-config.yaml @@ -1,9 +1,6 @@ {{- if .Values.usageMetrics.enabled }} apiVersion: v1 -data: - version.properties: spartakus_volunteer_extensions='{"seldon-core-version":"0.5"}' +data: {version.properties: 'spartakus_volunteer_extensions=''{"seldon-core-version":"0.5"}'''} kind: ConfigMap -metadata: - name: seldon-spartakus-config - namespace: kube-system +metadata: {name: seldon-spartakus-config, namespace: kube-system} {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/customresourcedefinition_seldondeployments.machinelearning.seldon.io.yaml b/helm-charts/seldon-core-operator/templates/customresourcedefinition_seldondeployments.machinelearning.seldon.io.yaml index b33f07912b..d902b1acb2 100644 --- a/helm-charts/seldon-core-operator/templates/customresourcedefinition_seldondeployments.machinelearning.seldon.io.yaml +++ b/helm-charts/seldon-core-operator/templates/customresourcedefinition_seldondeployments.machinelearning.seldon.io.yaml @@ -1,22 +1,16 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: - annotations: - certmanager.k8s.io/inject-ca-from: '{{ .Release.Namespace }}/seldon-serving-cert' + annotations: {certmanager.k8s.io/inject-ca-from: '{{ .Release.Namespace }}/seldon-serving-cert'} creationTimestamp: null - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldondeployments.machinelearning.seldon.io spec: group: machinelearning.seldon.io names: kind: SeldonDeployment plural: seldondeployments - shortNames: - - sdep + shortNames: [sdep] scope: Namespaced subresources: status: {} @@ -24,42 +18,30 @@ spec: openAPIV3Schema: description: SeldonDeployment is the Schema for the seldondeployments API properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' - type: string - metadata: - type: object + apiVersion: {description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources', type: string} + kind: {description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds', type: string} + metadata: {type: object} spec: description: SeldonDeploymentSpec defines the desired state of SeldonDeployment properties: annotations: - additionalProperties: - type: string + additionalProperties: {type: string} type: object - name: - type: string - oauth_key: - type: string - oauth_secret: - type: string + name: {type: string} + oauth_key: {type: string} + oauth_secret: {type: string} predictors: items: properties: annotations: - additionalProperties: - type: string + additionalProperties: {type: string} type: object componentSpecs: items: properties: hpaSpec: properties: - maxReplicas: - format: int32 - type: integer + maxReplicas: {format: int32, type: integer} metrics: items: description: MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). @@ -67,9 +49,7 @@ spec: external: description: external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). properties: - metricName: - description: metricName is the name of the metric in question. - type: string + metricName: {description: metricName is the name of the metric in question., type: string} metricSelector: description: metricSelector is used to identify a specific time series within a given metric. properties: @@ -78,46 +58,29 @@ spec: items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: key is the label key that the selector applies to. - type: string - operator: - description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - type: string + key: {description: key is the label key that the selector applies to., type: string} + operator: {description: 'operator represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.', type: string} values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchLabels: - additionalProperties: - type: string + additionalProperties: {type: string} description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object - targetAverageValue: - description: targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. - type: string - targetValue: - description: targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. - type: string - required: - - metricName + targetAverageValue: {description: targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue., type: string} + targetValue: {description: targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue., type: string} + required: [metricName] type: object object: description: object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). properties: - averageValue: - description: averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - type: string - metricName: - description: metricName is the name of the metric in question. - type: string + averageValue: {description: averageValue is the target value of the average of the metric across all relevant pods (as a quantity), type: string} + metricName: {description: metricName is the name of the metric in question., type: string} selector: description: selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. properties: @@ -126,58 +89,35 @@ spec: items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: key is the label key that the selector applies to. - type: string - operator: - description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - type: string + key: {description: key is the label key that the selector applies to., type: string} + operator: {description: 'operator represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.', type: string} values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchLabels: - additionalProperties: - type: string + additionalProperties: {type: string} description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object target: description: target is the described Kubernetes object. properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"' - type: string - name: - description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' - type: string - required: - - kind - - name + apiVersion: {description: API version of the referent, type: string} + kind: {description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"', type: string} + name: {description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names', type: string} + required: [kind, name] type: object - targetValue: - description: targetValue is the target value of the metric (as a quantity). - type: string - required: - - metricName - - target - - targetValue + targetValue: {description: targetValue is the target value of the metric (as a quantity)., type: string} + required: [metricName, target, targetValue] type: object pods: description: pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. properties: - metricName: - description: metricName is the name of the metric in question - type: string + metricName: {description: metricName is the name of the metric in question, type: string} selector: description: selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. properties: @@ -186,73 +126,43 @@ spec: items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: key is the label key that the selector applies to. - type: string - operator: - description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - type: string + key: {description: key is the label key that the selector applies to., type: string} + operator: {description: 'operator represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.', type: string} values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchLabels: - additionalProperties: - type: string + additionalProperties: {type: string} description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object - targetAverageValue: - description: targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - type: string - required: - - metricName - - targetAverageValue + targetAverageValue: {description: targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity), type: string} + required: [metricName, targetAverageValue] type: object resource: description: resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. properties: - name: - description: name is the name of the resource in question. - type: string - targetAverageUtilization: - description: targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - format: int32 - type: integer - targetAverageValue: - description: targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. - type: string - required: - - name + name: {description: name is the name of the resource in question., type: string} + targetAverageUtilization: {description: 'targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.', format: int32, type: integer} + targetAverageValue: {description: 'targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.', type: string} + required: [name] type: object - type: - description: type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - type: string - required: - - type + type: {description: 'type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object.', type: string} + required: [type] type: object type: array - minReplicas: - format: int32 - type: integer - required: - - maxReplicas - type: object - metadata: + minReplicas: {format: int32, type: integer} + required: [maxReplicas] type: object + metadata: {type: object} spec: description: PodSpec is a description of a pod. properties: - activeDeadlineSeconds: - description: Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - format: int64 - type: integer + activeDeadlineSeconds: {description: Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer., format: int64, type: integer} affinity: description: If specified, the pod's scheduling constraints properties: @@ -272,20 +182,13 @@ spec: items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string + key: {description: The label key that the selector applies to., type: string} + operator: {description: 'Represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.', type: string} values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchFields: @@ -293,30 +196,18 @@ spec: items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string + key: {description: The label key that the selector applies to., type: string} + operator: {description: 'Represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.', type: string} values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array type: object - weight: - description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - format: int32 - type: integer - required: - - preference - - weight + weight: {description: 'Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.', format: int32, type: integer} + required: [preference, weight] type: object type: array requiredDuringSchedulingIgnoredDuringExecution: @@ -332,20 +223,13 @@ spec: items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string + key: {description: The label key that the selector applies to., type: string} + operator: {description: 'Represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.', type: string} values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchFields: @@ -353,26 +237,18 @@ spec: items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string + key: {description: The label key that the selector applies to., type: string} + operator: {description: 'Represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.', type: string} values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array type: object type: array - required: - - nodeSelectorTerms + required: [nodeSelectorTerms] type: object type: object podAffinity: @@ -394,46 +270,29 @@ spec: items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: key is the label key that the selector applies to. - type: string - operator: - description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - type: string + key: {description: key is the label key that the selector applies to., type: string} + operator: {description: 'operator represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.', type: string} values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchLabels: - additionalProperties: - type: string + additionalProperties: {type: string} description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - items: - type: string + items: {type: string} type: array - topologyKey: - description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - type: string - required: - - topologyKey + topologyKey: {description: 'This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.', type: string} + required: [topologyKey] type: object - weight: - description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight + weight: {description: 'weight associated with matching the corresponding podAffinityTerm, in the range 1-100.', format: int32, type: integer} + required: [podAffinityTerm, weight] type: object type: array requiredDuringSchedulingIgnoredDuringExecution: @@ -449,38 +308,26 @@ spec: items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: key is the label key that the selector applies to. - type: string - operator: - description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - type: string + key: {description: key is the label key that the selector applies to., type: string} + operator: {description: 'operator represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.', type: string} values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchLabels: - additionalProperties: - type: string + additionalProperties: {type: string} description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - items: - type: string + items: {type: string} type: array - topologyKey: - description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - type: string - required: - - topologyKey + topologyKey: {description: 'This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.', type: string} + required: [topologyKey] type: object type: array type: object @@ -503,46 +350,29 @@ spec: items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: key is the label key that the selector applies to. - type: string - operator: - description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - type: string + key: {description: key is the label key that the selector applies to., type: string} + operator: {description: 'operator represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.', type: string} values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchLabels: - additionalProperties: - type: string + additionalProperties: {type: string} description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - items: - type: string + items: {type: string} type: array - topologyKey: - description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - type: string - required: - - topologyKey + topologyKey: {description: 'This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.', type: string} + required: [topologyKey] type: object - weight: - description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight + weight: {description: 'weight associated with matching the corresponding podAffinityTerm, in the range 1-100.', format: int32, type: integer} + required: [podAffinityTerm, weight] type: object type: array requiredDuringSchedulingIgnoredDuringExecution: @@ -558,45 +388,31 @@ spec: items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: - key: - description: key is the label key that the selector applies to. - type: string - operator: - description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - type: string + key: {description: key is the label key that the selector applies to., type: string} + operator: {description: 'operator represents a key''s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.', type: string} values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - items: - type: string + items: {type: string} type: array - required: - - key - - operator + required: [key, operator] type: object type: array matchLabels: - additionalProperties: - type: string + additionalProperties: {type: string} description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - items: - type: string + items: {type: string} type: array - topologyKey: - description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - type: string - required: - - topologyKey + topologyKey: {description: 'This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.', type: string} + required: [topologyKey] type: object type: array type: object type: object - automountServiceAccountToken: - description: AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - type: boolean + automountServiceAccountToken: {description: AutomountServiceAccountToken indicates whether a service account token should be automatically mounted., type: boolean} containers: description: List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. items: @@ -604,88 +420,55 @@ spec: properties: args: description: 'Arguments to the entrypoint. The docker image''s CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container''s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' - items: - type: string + items: {type: string} type: array command: description: 'Entrypoint array. Not executed within a shell. The docker image''s ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container''s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' - items: - type: string + items: {type: string} type: array env: description: List of environment variables to set in the container. Cannot be updated. items: description: EnvVar represents an environment variable present in a Container. properties: - name: - description: Name of the environment variable. Must be a C_IDENTIFIER. - type: string - value: - description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".' - type: string + name: {description: Name of the environment variable. Must be a C_IDENTIFIER., type: string} + value: {description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".', type: string} valueFrom: description: Source for the environment variable's value. Cannot be used if value is not empty. properties: configMapKeyRef: description: Selects a key of a ConfigMap. properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap or it's key must be defined - type: boolean - required: - - key + key: {description: The key to select., type: string} + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the ConfigMap or it's key must be defined, type: boolean} + required: [key] type: object fieldRef: description: 'Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.' properties: - apiVersion: - description: Version of the schema the FieldPath is written in terms of, defaults to "v1". - type: string - fieldPath: - description: Path of the field to select in the specified API version. - type: string - required: - - fieldPath + apiVersion: {description: 'Version of the schema the FieldPath is written in terms of, defaults to "v1".', type: string} + fieldPath: {description: Path of the field to select in the specified API version., type: string} + required: [fieldPath] type: object resourceFieldRef: description: 'Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.' properties: - containerName: - description: 'Container name: required for volumes, optional for env vars' - type: string - divisor: - description: Specifies the output format of the exposed resources, defaults to "1" - type: string - resource: - description: 'Required: resource to select' - type: string - required: - - resource + containerName: {description: 'Container name: required for volumes, optional for env vars', type: string} + divisor: {description: 'Specifies the output format of the exposed resources, defaults to "1"', type: string} + resource: {description: 'Required: resource to select', type: string} + required: [resource] type: object secretKeyRef: description: Selects a key of a secret in the pod's namespace properties: - key: - description: The key of the secret to select from. Must be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret or it's key must be defined - type: boolean - required: - - key + key: {description: The key of the secret to select from. Must be a valid secret key., type: string} + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the Secret or it's key must be defined, type: boolean} + required: [key] type: object type: object - required: - - name + required: [name] type: object type: array envFrom: @@ -696,34 +479,20 @@ spec: configMapRef: description: The ConfigMap to select from properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap must be defined - type: boolean + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the ConfigMap must be defined, type: boolean} type: object - prefix: - description: An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - type: string + prefix: {description: An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER., type: string} secretRef: description: The Secret to select from properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret must be defined - type: boolean + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the Secret must be defined, type: boolean} type: object type: object type: array - image: - description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.' - type: string - imagePullPolicy: - description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' - type: string + image: {description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.', type: string} + imagePullPolicy: {description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images', type: string} lifecycle: description: Actions that the management system should take in response to container lifecycle events. Cannot be updated. properties: @@ -735,55 +504,34 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object type: object preStop: @@ -794,55 +542,34 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object type: object type: object @@ -854,104 +581,53 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object - failureThreshold: - description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - format: int32 - type: integer + failureThreshold: {description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1., format: int32, type: integer} httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object - initialDelaySeconds: - description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer - periodSeconds: - description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. - format: int32 - type: integer + initialDelaySeconds: {description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} + periodSeconds: {description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1., format: int32, type: integer} + successThreshold: {description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1., format: int32, type: integer} tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object - timeoutSeconds: - description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer + timeoutSeconds: {description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} type: object - name: - description: Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - type: string + name: {description: Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated., type: string} ports: description: List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. items: description: ContainerPort represents a network port in a single container. properties: - containerPort: - description: Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - format: int32 - type: integer - hostIP: - description: What host IP to bind the external port to. - type: string - hostPort: - description: Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - format: int32 - type: integer - name: - description: If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - type: string - protocol: - description: Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - type: string - required: - - containerPort + containerPort: {description: 'Number of port to expose on the pod''s IP address. This must be a valid port number, 0 < x < 65536.', format: int32, type: integer} + hostIP: {description: What host IP to bind the external port to., type: string} + hostPort: {description: 'Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.', format: int32, type: integer} + name: {description: 'If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.', type: string} + protocol: {description: 'Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".', type: string} + required: [containerPort] type: object type: array readinessProbe: @@ -962,179 +638,97 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object - failureThreshold: - description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - format: int32 - type: integer + failureThreshold: {description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1., format: int32, type: integer} httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object - initialDelaySeconds: - description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer - periodSeconds: - description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. - format: int32 - type: integer + initialDelaySeconds: {description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} + periodSeconds: {description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1., format: int32, type: integer} + successThreshold: {description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1., format: int32, type: integer} tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object - timeoutSeconds: - description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer + timeoutSeconds: {description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} type: object resources: description: 'Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' properties: limits: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object type: object securityContext: description: 'Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' properties: - allowPrivilegeEscalation: - description: 'AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN' - type: boolean + allowPrivilegeEscalation: {description: 'AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN', type: boolean} capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. properties: add: description: Added capabilities - items: - description: Capability represent POSIX capabilities type - type: string + items: {description: Capability represent POSIX capabilities type, type: string} type: array drop: description: Removed capabilities - items: - description: Capability represent POSIX capabilities type - type: string + items: {description: Capability represent POSIX capabilities type, type: string} type: array type: object - privileged: - description: Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - type: boolean - procMount: - description: procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - type: string - readOnlyRootFilesystem: - description: Whether this container has a read-only root filesystem. Default is false. - type: boolean - runAsGroup: - description: The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - format: int64 - type: integer - runAsNonRoot: - description: Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - type: boolean - runAsUser: - description: The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - format: int64 - type: integer + privileged: {description: Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false., type: boolean} + procMount: {description: procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled., type: string} + readOnlyRootFilesystem: {description: Whether this container has a read-only root filesystem. Default is false., type: boolean} + runAsGroup: {description: 'The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', format: int64, type: integer} + runAsNonRoot: {description: 'Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', type: boolean} + runAsUser: {description: 'The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', format: int64, type: integer} seLinuxOptions: description: The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. properties: - level: - description: Level is SELinux level label that applies to the container. - type: string - role: - description: Role is a SELinux role label that applies to the container. - type: string - type: - description: Type is a SELinux type label that applies to the container. - type: string - user: - description: User is a SELinux user label that applies to the container. - type: string + level: {description: Level is SELinux level label that applies to the container., type: string} + role: {description: Role is a SELinux role label that applies to the container., type: string} + type: {description: Type is a SELinux type label that applies to the container., type: string} + user: {description: User is a SELinux user label that applies to the container., type: string} type: object type: object - stdin: - description: Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - type: boolean - stdinOnce: - description: Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - type: boolean - terminationMessagePath: - description: 'Optional: Path at which the file to which the container''s termination message will be written is mounted into the container''s filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.' - type: string - terminationMessagePolicy: - description: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - type: string - tty: - description: Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - type: boolean + stdin: {description: 'Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.', type: boolean} + stdinOnce: {description: 'Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false', type: boolean} + terminationMessagePath: {description: 'Optional: Path at which the file to which the container''s termination message will be written is mounted into the container''s filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.', type: string} + terminationMessagePolicy: {description: 'Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.', type: string} + tty: {description: 'Whether this container should allocate a TTY for itself, also requires ''stdin'' to be true. Default is false.', type: boolean} volumeDevices: description: volumeDevices is the list of block devices to be used by the container. This is a beta feature. items: description: volumeDevice describes a mapping of a raw block device within a container. properties: - devicePath: - description: devicePath is the path inside of the container that the device will be mapped to. - type: string - name: - description: name must match the name of a persistentVolumeClaim in the pod - type: string - required: - - devicePath - - name + devicePath: {description: devicePath is the path inside of the container that the device will be mapped to., type: string} + name: {description: name must match the name of a persistentVolumeClaim in the pod, type: string} + required: [devicePath, name] type: object type: array volumeMounts: @@ -1142,34 +736,17 @@ spec: items: description: VolumeMount describes a mounting of a Volume within a container. properties: - mountPath: - description: Path within the container at which the volume should be mounted. Must not contain ':'. - type: string - mountPropagation: - description: mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - type: string - name: - description: This must match the Name of a Volume. - type: string - readOnly: - description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - type: boolean - subPath: - description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - type: string - subPathExpr: - description: Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14. - type: string - required: - - mountPath - - name + mountPath: {description: 'Path within the container at which the volume should be mounted. Must not contain '':''.', type: string} + mountPropagation: {description: 'mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.', type: string} + name: {description: This must match the Name of a Volume., type: string} + readOnly: {description: 'Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.', type: boolean} + subPath: {description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root)., type: string} + subPathExpr: {description: Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14., type: string} + required: [mountPath, name] type: object type: array - workingDir: - description: Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - type: string - required: - - name + workingDir: {description: 'Container''s working directory. If not specified, the container runtime''s default will be used, which might be configured in the container image. Cannot be updated.', type: string} + required: [name] type: object type: array dnsConfig: @@ -1177,33 +754,24 @@ spec: properties: nameservers: description: A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - items: - type: string + items: {type: string} type: array options: description: A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. items: description: PodDNSConfigOption defines DNS resolver options of a pod. properties: - name: - description: Required. - type: string - value: - type: string + name: {description: Required., type: string} + value: {type: string} type: object type: array searches: description: A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - items: - type: string + items: {type: string} type: array type: object - dnsPolicy: - description: Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - type: string - enableServiceLinks: - description: 'EnableServiceLinks indicates whether information about services should be injected into pod''s environment variables, matching the syntax of Docker links. Optional: Defaults to true.' - type: boolean + dnsPolicy: {description: 'Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are ''ClusterFirstWithHostNet'', ''ClusterFirst'', ''Default'' or ''None''. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to ''ClusterFirstWithHostNet''.', type: string} + enableServiceLinks: {description: 'EnableServiceLinks indicates whether information about services should be injected into pod''s environment variables, matching the syntax of Docker links. Optional: Defaults to true.', type: boolean} hostAliases: description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. items: @@ -1211,34 +779,21 @@ spec: properties: hostnames: description: Hostnames for the above IP address. - items: - type: string + items: {type: string} type: array - ip: - description: IP address of the host file entry. - type: string + ip: {description: IP address of the host file entry., type: string} type: object type: array - hostIPC: - description: 'Use the host''s ipc namespace. Optional: Default to false.' - type: boolean - hostNetwork: - description: Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - type: boolean - hostPID: - description: 'Use the host''s pid namespace. Optional: Default to false.' - type: boolean - hostname: - description: Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - type: string + hostIPC: {description: 'Use the host''s ipc namespace. Optional: Default to false.', type: boolean} + hostNetwork: {description: 'Host networking requested for this pod. Use the host''s network namespace. If this option is set, the ports that will be used must be specified. Default to false.', type: boolean} + hostPID: {description: 'Use the host''s pid namespace. Optional: Default to false.', type: boolean} + hostname: {description: 'Specifies the hostname of the Pod If not specified, the pod''s hostname will be set to a system-defined value.', type: string} imagePullSecrets: description: 'ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod' items: description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} type: object type: array initContainers: @@ -1248,88 +803,55 @@ spec: properties: args: description: 'Arguments to the entrypoint. The docker image''s CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container''s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' - items: - type: string + items: {type: string} type: array command: description: 'Entrypoint array. Not executed within a shell. The docker image''s ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container''s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' - items: - type: string + items: {type: string} type: array env: description: List of environment variables to set in the container. Cannot be updated. items: description: EnvVar represents an environment variable present in a Container. properties: - name: - description: Name of the environment variable. Must be a C_IDENTIFIER. - type: string - value: - description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".' - type: string + name: {description: Name of the environment variable. Must be a C_IDENTIFIER., type: string} + value: {description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".', type: string} valueFrom: description: Source for the environment variable's value. Cannot be used if value is not empty. properties: configMapKeyRef: description: Selects a key of a ConfigMap. properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap or it's key must be defined - type: boolean - required: - - key + key: {description: The key to select., type: string} + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the ConfigMap or it's key must be defined, type: boolean} + required: [key] type: object fieldRef: description: 'Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.' properties: - apiVersion: - description: Version of the schema the FieldPath is written in terms of, defaults to "v1". - type: string - fieldPath: - description: Path of the field to select in the specified API version. - type: string - required: - - fieldPath + apiVersion: {description: 'Version of the schema the FieldPath is written in terms of, defaults to "v1".', type: string} + fieldPath: {description: Path of the field to select in the specified API version., type: string} + required: [fieldPath] type: object resourceFieldRef: description: 'Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.' properties: - containerName: - description: 'Container name: required for volumes, optional for env vars' - type: string - divisor: - description: Specifies the output format of the exposed resources, defaults to "1" - type: string - resource: - description: 'Required: resource to select' - type: string - required: - - resource + containerName: {description: 'Container name: required for volumes, optional for env vars', type: string} + divisor: {description: 'Specifies the output format of the exposed resources, defaults to "1"', type: string} + resource: {description: 'Required: resource to select', type: string} + required: [resource] type: object secretKeyRef: description: Selects a key of a secret in the pod's namespace properties: - key: - description: The key of the secret to select from. Must be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret or it's key must be defined - type: boolean - required: - - key + key: {description: The key of the secret to select from. Must be a valid secret key., type: string} + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the Secret or it's key must be defined, type: boolean} + required: [key] type: object type: object - required: - - name + required: [name] type: object type: array envFrom: @@ -1340,34 +862,20 @@ spec: configMapRef: description: The ConfigMap to select from properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap must be defined - type: boolean + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the ConfigMap must be defined, type: boolean} type: object - prefix: - description: An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - type: string + prefix: {description: An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER., type: string} secretRef: description: The Secret to select from properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret must be defined - type: boolean + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the Secret must be defined, type: boolean} type: object type: object type: array - image: - description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.' - type: string - imagePullPolicy: - description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' - type: string + image: {description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.', type: string} + imagePullPolicy: {description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images', type: string} lifecycle: description: Actions that the management system should take in response to container lifecycle events. Cannot be updated. properties: @@ -1379,55 +887,34 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object type: object preStop: @@ -1438,55 +925,34 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object type: object type: object @@ -1498,104 +964,53 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object - failureThreshold: - description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - format: int32 - type: integer + failureThreshold: {description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1., format: int32, type: integer} httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object - initialDelaySeconds: - description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer - periodSeconds: - description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. - format: int32 - type: integer + initialDelaySeconds: {description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} + periodSeconds: {description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1., format: int32, type: integer} + successThreshold: {description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1., format: int32, type: integer} tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object - timeoutSeconds: - description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer + timeoutSeconds: {description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} type: object - name: - description: Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - type: string + name: {description: Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated., type: string} ports: description: List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. items: description: ContainerPort represents a network port in a single container. properties: - containerPort: - description: Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - format: int32 - type: integer - hostIP: - description: What host IP to bind the external port to. - type: string - hostPort: - description: Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - format: int32 - type: integer - name: - description: If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - type: string - protocol: - description: Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - type: string - required: - - containerPort + containerPort: {description: 'Number of port to expose on the pod''s IP address. This must be a valid port number, 0 < x < 65536.', format: int32, type: integer} + hostIP: {description: What host IP to bind the external port to., type: string} + hostPort: {description: 'Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.', format: int32, type: integer} + name: {description: 'If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.', type: string} + protocol: {description: 'Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".', type: string} + required: [containerPort] type: object type: array readinessProbe: @@ -1606,179 +1021,97 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object - failureThreshold: - description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - format: int32 - type: integer + failureThreshold: {description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1., format: int32, type: integer} httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object - initialDelaySeconds: - description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer - periodSeconds: - description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. - format: int32 - type: integer + initialDelaySeconds: {description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} + periodSeconds: {description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1., format: int32, type: integer} + successThreshold: {description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1., format: int32, type: integer} tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object - timeoutSeconds: - description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer + timeoutSeconds: {description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} type: object resources: description: 'Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' properties: limits: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object type: object securityContext: description: 'Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' properties: - allowPrivilegeEscalation: - description: 'AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN' - type: boolean + allowPrivilegeEscalation: {description: 'AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN', type: boolean} capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. properties: add: description: Added capabilities - items: - description: Capability represent POSIX capabilities type - type: string + items: {description: Capability represent POSIX capabilities type, type: string} type: array drop: description: Removed capabilities - items: - description: Capability represent POSIX capabilities type - type: string + items: {description: Capability represent POSIX capabilities type, type: string} type: array type: object - privileged: - description: Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - type: boolean - procMount: - description: procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - type: string - readOnlyRootFilesystem: - description: Whether this container has a read-only root filesystem. Default is false. - type: boolean - runAsGroup: - description: The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - format: int64 - type: integer - runAsNonRoot: - description: Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - type: boolean - runAsUser: - description: The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - format: int64 - type: integer + privileged: {description: Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false., type: boolean} + procMount: {description: procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled., type: string} + readOnlyRootFilesystem: {description: Whether this container has a read-only root filesystem. Default is false., type: boolean} + runAsGroup: {description: 'The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', format: int64, type: integer} + runAsNonRoot: {description: 'Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', type: boolean} + runAsUser: {description: 'The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', format: int64, type: integer} seLinuxOptions: description: The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. properties: - level: - description: Level is SELinux level label that applies to the container. - type: string - role: - description: Role is a SELinux role label that applies to the container. - type: string - type: - description: Type is a SELinux type label that applies to the container. - type: string - user: - description: User is a SELinux user label that applies to the container. - type: string + level: {description: Level is SELinux level label that applies to the container., type: string} + role: {description: Role is a SELinux role label that applies to the container., type: string} + type: {description: Type is a SELinux type label that applies to the container., type: string} + user: {description: User is a SELinux user label that applies to the container., type: string} type: object type: object - stdin: - description: Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - type: boolean - stdinOnce: - description: Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - type: boolean - terminationMessagePath: - description: 'Optional: Path at which the file to which the container''s termination message will be written is mounted into the container''s filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.' - type: string - terminationMessagePolicy: - description: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - type: string - tty: - description: Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - type: boolean + stdin: {description: 'Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.', type: boolean} + stdinOnce: {description: 'Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false', type: boolean} + terminationMessagePath: {description: 'Optional: Path at which the file to which the container''s termination message will be written is mounted into the container''s filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.', type: string} + terminationMessagePolicy: {description: 'Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.', type: string} + tty: {description: 'Whether this container should allocate a TTY for itself, also requires ''stdin'' to be true. Default is false.', type: boolean} volumeDevices: description: volumeDevices is the list of block devices to be used by the container. This is a beta feature. items: description: volumeDevice describes a mapping of a raw block device within a container. properties: - devicePath: - description: devicePath is the path inside of the container that the device will be mapped to. - type: string - name: - description: name must match the name of a persistentVolumeClaim in the pod - type: string - required: - - devicePath - - name + devicePath: {description: devicePath is the path inside of the container that the device will be mapped to., type: string} + name: {description: name must match the name of a persistentVolumeClaim in the pod, type: string} + required: [devicePath, name] type: object type: array volumeMounts: @@ -1786,175 +1119,90 @@ spec: items: description: VolumeMount describes a mounting of a Volume within a container. properties: - mountPath: - description: Path within the container at which the volume should be mounted. Must not contain ':'. - type: string - mountPropagation: - description: mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - type: string - name: - description: This must match the Name of a Volume. - type: string - readOnly: - description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - type: boolean - subPath: - description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - type: string - subPathExpr: - description: Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14. - type: string - required: - - mountPath - - name + mountPath: {description: 'Path within the container at which the volume should be mounted. Must not contain '':''.', type: string} + mountPropagation: {description: 'mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.', type: string} + name: {description: This must match the Name of a Volume., type: string} + readOnly: {description: 'Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.', type: boolean} + subPath: {description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root)., type: string} + subPathExpr: {description: Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14., type: string} + required: [mountPath, name] type: object type: array - workingDir: - description: Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - type: string - required: - - name + workingDir: {description: 'Container''s working directory. If not specified, the container runtime''s default will be used, which might be configured in the container image. Cannot be updated.', type: string} + required: [name] type: object type: array - nodeName: - description: NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - type: string + nodeName: {description: 'NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.', type: string} nodeSelector: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node''s labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/' type: object - priority: - description: The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - format: int32 - type: integer - priorityClassName: - description: If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - type: string + priority: {description: 'The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.', format: int32, type: integer} + priorityClassName: {description: 'If specified, indicates the pod''s priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.', type: string} readinessGates: description: 'If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md' items: description: PodReadinessGate contains the reference to a pod condition properties: - conditionType: - description: ConditionType refers to a condition in the pod's condition list with matching type. - type: string - required: - - conditionType + conditionType: {description: ConditionType refers to a condition in the pod's condition list with matching type., type: string} + required: [conditionType] type: object type: array - restartPolicy: - description: 'Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy' - type: string - runtimeClassName: - description: 'RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future.' - type: string - schedulerName: - description: If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - type: string + restartPolicy: {description: 'Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy', type: string} + runtimeClassName: {description: 'RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future.', type: string} + schedulerName: {description: 'If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.', type: string} securityContext: description: 'SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.' properties: - fsGroup: - description: "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: \n 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- \n If unset, the Kubelet will not modify the ownership and permissions of any volume." - format: int64 - type: integer - runAsGroup: - description: The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - format: int64 - type: integer - runAsNonRoot: - description: Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - type: boolean - runAsUser: - description: The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - format: int64 - type: integer + fsGroup: {description: "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: \n 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- \n If unset, the Kubelet will not modify the ownership and permissions of any volume.", format: int64, type: integer} + runAsGroup: {description: 'The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.', format: int64, type: integer} + runAsNonRoot: {description: 'Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', type: boolean} + runAsUser: {description: 'The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.', format: int64, type: integer} seLinuxOptions: description: The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. properties: - level: - description: Level is SELinux level label that applies to the container. - type: string - role: - description: Role is a SELinux role label that applies to the container. - type: string - type: - description: Type is a SELinux type label that applies to the container. - type: string - user: - description: User is a SELinux user label that applies to the container. - type: string + level: {description: Level is SELinux level label that applies to the container., type: string} + role: {description: Role is a SELinux role label that applies to the container., type: string} + type: {description: Type is a SELinux type label that applies to the container., type: string} + user: {description: User is a SELinux user label that applies to the container., type: string} type: object supplementalGroups: description: A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - items: - format: int64 - type: integer + items: {format: int64, type: integer} type: array sysctls: description: Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. items: description: Sysctl defines a kernel parameter to be set properties: - name: - description: Name of a property to set - type: string - value: - description: Value of a property to set - type: string - required: - - name - - value + name: {description: Name of a property to set, type: string} + value: {description: Value of a property to set, type: string} + required: [name, value] type: object type: array type: object - serviceAccount: - description: 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' - type: string - serviceAccountName: - description: 'ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/' - type: string - shareProcessNamespace: - description: 'Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature.' - type: boolean - subdomain: - description: If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - type: string - terminationGracePeriodSeconds: - description: Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - format: int64 - type: integer + serviceAccount: {description: 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.', type: string} + serviceAccountName: {description: 'ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/', type: string} + shareProcessNamespace: {description: 'Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature.', type: boolean} + subdomain: {description: 'If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all.', type: string} + terminationGracePeriodSeconds: {description: 'Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.', format: int64, type: integer} tolerations: description: If specified, the pod's tolerations. items: description: The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . properties: - effect: - description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - type: string - operator: - description: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - type: string - tolerationSeconds: - description: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - format: int64 - type: integer - value: - description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string + effect: {description: 'Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.', type: string} + key: {description: 'Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.', type: string} + operator: {description: 'Operator represents a key''s relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.', type: string} + tolerationSeconds: {description: 'TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.', format: int64, type: integer} + value: {description: 'Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.', type: string} type: object type: array volumes: description: 'List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes' - items: - type: object + items: {type: object} type: array - required: - - containers + required: [containers] type: object type: object type: array @@ -1962,109 +1210,73 @@ spec: description: ResourceRequirements describes the compute resource requirements. properties: limits: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object type: object explainer: properties: config: - additionalProperties: - type: string + additionalProperties: {type: string} type: object containerSpec: description: A single application container that you want to run within a pod. properties: args: description: 'Arguments to the entrypoint. The docker image''s CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container''s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' - items: - type: string + items: {type: string} type: array command: description: 'Entrypoint array. Not executed within a shell. The docker image''s ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container''s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' - items: - type: string + items: {type: string} type: array env: description: List of environment variables to set in the container. Cannot be updated. items: description: EnvVar represents an environment variable present in a Container. properties: - name: - description: Name of the environment variable. Must be a C_IDENTIFIER. - type: string - value: - description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".' - type: string + name: {description: Name of the environment variable. Must be a C_IDENTIFIER., type: string} + value: {description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".', type: string} valueFrom: description: Source for the environment variable's value. Cannot be used if value is not empty. properties: configMapKeyRef: description: Selects a key of a ConfigMap. properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap or it's key must be defined - type: boolean - required: - - key + key: {description: The key to select., type: string} + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the ConfigMap or it's key must be defined, type: boolean} + required: [key] type: object fieldRef: description: 'Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.' properties: - apiVersion: - description: Version of the schema the FieldPath is written in terms of, defaults to "v1". - type: string - fieldPath: - description: Path of the field to select in the specified API version. - type: string - required: - - fieldPath + apiVersion: {description: 'Version of the schema the FieldPath is written in terms of, defaults to "v1".', type: string} + fieldPath: {description: Path of the field to select in the specified API version., type: string} + required: [fieldPath] type: object resourceFieldRef: description: 'Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.' properties: - containerName: - description: 'Container name: required for volumes, optional for env vars' - type: string - divisor: - description: Specifies the output format of the exposed resources, defaults to "1" - type: string - resource: - description: 'Required: resource to select' - type: string - required: - - resource + containerName: {description: 'Container name: required for volumes, optional for env vars', type: string} + divisor: {description: 'Specifies the output format of the exposed resources, defaults to "1"', type: string} + resource: {description: 'Required: resource to select', type: string} + required: [resource] type: object secretKeyRef: description: Selects a key of a secret in the pod's namespace properties: - key: - description: The key of the secret to select from. Must be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret or it's key must be defined - type: boolean - required: - - key + key: {description: The key of the secret to select from. Must be a valid secret key., type: string} + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the Secret or it's key must be defined, type: boolean} + required: [key] type: object type: object - required: - - name + required: [name] type: object type: array envFrom: @@ -2075,34 +1287,20 @@ spec: configMapRef: description: The ConfigMap to select from properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap must be defined - type: boolean + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the ConfigMap must be defined, type: boolean} type: object - prefix: - description: An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - type: string + prefix: {description: An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER., type: string} secretRef: description: The Secret to select from properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret must be defined - type: boolean + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the Secret must be defined, type: boolean} type: object type: object type: array - image: - description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.' - type: string - imagePullPolicy: - description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' - type: string + image: {description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.', type: string} + imagePullPolicy: {description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images', type: string} lifecycle: description: Actions that the management system should take in response to container lifecycle events. Cannot be updated. properties: @@ -2114,55 +1312,34 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object type: object preStop: @@ -2173,55 +1350,34 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object type: object type: object @@ -2233,104 +1389,53 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object - failureThreshold: - description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - format: int32 - type: integer + failureThreshold: {description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1., format: int32, type: integer} httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object - initialDelaySeconds: - description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer - periodSeconds: - description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. - format: int32 - type: integer + initialDelaySeconds: {description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} + periodSeconds: {description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1., format: int32, type: integer} + successThreshold: {description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1., format: int32, type: integer} tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object - timeoutSeconds: - description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer + timeoutSeconds: {description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} type: object - name: - description: Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - type: string + name: {description: Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated., type: string} ports: description: List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. items: description: ContainerPort represents a network port in a single container. properties: - containerPort: - description: Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - format: int32 - type: integer - hostIP: - description: What host IP to bind the external port to. - type: string - hostPort: - description: Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - format: int32 - type: integer - name: - description: If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - type: string - protocol: - description: Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - type: string - required: - - containerPort + containerPort: {description: 'Number of port to expose on the pod''s IP address. This must be a valid port number, 0 < x < 65536.', format: int32, type: integer} + hostIP: {description: What host IP to bind the external port to., type: string} + hostPort: {description: 'Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.', format: int32, type: integer} + name: {description: 'If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.', type: string} + protocol: {description: 'Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".', type: string} + required: [containerPort] type: object type: array readinessProbe: @@ -2341,179 +1446,97 @@ spec: properties: command: description: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string + items: {type: string} type: array type: object - failureThreshold: - description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - format: int32 - type: integer + failureThreshold: {description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1., format: int32, type: integer} httpGet: description: HTTPGet specifies the http request to perform. properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - type: string + host: {description: 'Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.', type: string} httpHeaders: description: Custom headers to set in the request. HTTP allows repeated headers. items: description: HTTPHeader describes a custom header to be used in HTTP probes properties: - name: - description: The header field name - type: string - value: - description: The header field value - type: string - required: - - name - - value + name: {description: The header field name, type: string} + value: {description: The header field value, type: string} + required: [name, value] type: object type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port + path: {description: Path to access on the HTTP server., type: string} + port: {description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + scheme: {description: Scheme to use for connecting to the host. Defaults to HTTP., type: string} + required: [port] type: object - initialDelaySeconds: - description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer - periodSeconds: - description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. - format: int32 - type: integer + initialDelaySeconds: {description: 'Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} + periodSeconds: {description: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1., format: int32, type: integer} + successThreshold: {description: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1., format: int32, type: integer} tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook' properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port + host: {description: 'Optional: Host name to connect to, defaults to the pod IP.', type: string} + port: {description: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., x-kubernetes-int-or-string: true} + required: [port] type: object - timeoutSeconds: - description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' - format: int32 - type: integer + timeoutSeconds: {description: 'Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes', format: int32, type: integer} type: object resources: description: 'Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' properties: limits: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object type: object securityContext: description: 'Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' properties: - allowPrivilegeEscalation: - description: 'AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN' - type: boolean + allowPrivilegeEscalation: {description: 'AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN', type: boolean} capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. properties: add: description: Added capabilities - items: - description: Capability represent POSIX capabilities type - type: string + items: {description: Capability represent POSIX capabilities type, type: string} type: array drop: description: Removed capabilities - items: - description: Capability represent POSIX capabilities type - type: string + items: {description: Capability represent POSIX capabilities type, type: string} type: array type: object - privileged: - description: Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - type: boolean - procMount: - description: procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - type: string - readOnlyRootFilesystem: - description: Whether this container has a read-only root filesystem. Default is false. - type: boolean - runAsGroup: - description: The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - format: int64 - type: integer - runAsNonRoot: - description: Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - type: boolean - runAsUser: - description: The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - format: int64 - type: integer + privileged: {description: Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false., type: boolean} + procMount: {description: procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled., type: string} + readOnlyRootFilesystem: {description: Whether this container has a read-only root filesystem. Default is false., type: boolean} + runAsGroup: {description: 'The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', format: int64, type: integer} + runAsNonRoot: {description: 'Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', type: boolean} + runAsUser: {description: 'The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.', format: int64, type: integer} seLinuxOptions: description: The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. properties: - level: - description: Level is SELinux level label that applies to the container. - type: string - role: - description: Role is a SELinux role label that applies to the container. - type: string - type: - description: Type is a SELinux type label that applies to the container. - type: string - user: - description: User is a SELinux user label that applies to the container. - type: string + level: {description: Level is SELinux level label that applies to the container., type: string} + role: {description: Role is a SELinux role label that applies to the container., type: string} + type: {description: Type is a SELinux type label that applies to the container., type: string} + user: {description: User is a SELinux user label that applies to the container., type: string} type: object type: object - stdin: - description: Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - type: boolean - stdinOnce: - description: Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - type: boolean - terminationMessagePath: - description: 'Optional: Path at which the file to which the container''s termination message will be written is mounted into the container''s filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.' - type: string - terminationMessagePolicy: - description: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - type: string - tty: - description: Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - type: boolean + stdin: {description: 'Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.', type: boolean} + stdinOnce: {description: 'Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false', type: boolean} + terminationMessagePath: {description: 'Optional: Path at which the file to which the container''s termination message will be written is mounted into the container''s filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.', type: string} + terminationMessagePolicy: {description: 'Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.', type: string} + tty: {description: 'Whether this container should allocate a TTY for itself, also requires ''stdin'' to be true. Default is false.', type: boolean} volumeDevices: description: volumeDevices is the list of block devices to be used by the container. This is a beta feature. items: description: volumeDevice describes a mapping of a raw block device within a container. properties: - devicePath: - description: devicePath is the path inside of the container that the device will be mapped to. - type: string - name: - description: name must match the name of a persistentVolumeClaim in the pod - type: string - required: - - devicePath - - name + devicePath: {description: devicePath is the path inside of the container that the device will be mapped to., type: string} + name: {description: name must match the name of a persistentVolumeClaim in the pod, type: string} + required: [devicePath, name] type: object type: array volumeMounts: @@ -2521,53 +1544,28 @@ spec: items: description: VolumeMount describes a mounting of a Volume within a container. properties: - mountPath: - description: Path within the container at which the volume should be mounted. Must not contain ':'. - type: string - mountPropagation: - description: mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - type: string - name: - description: This must match the Name of a Volume. - type: string - readOnly: - description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - type: boolean - subPath: - description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - type: string - subPathExpr: - description: Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14. - type: string - required: - - mountPath - - name + mountPath: {description: 'Path within the container at which the volume should be mounted. Must not contain '':''.', type: string} + mountPropagation: {description: 'mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.', type: string} + name: {description: This must match the Name of a Volume., type: string} + readOnly: {description: 'Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.', type: boolean} + subPath: {description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root)., type: string} + subPathExpr: {description: Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14., type: string} + required: [mountPath, name] type: object type: array - workingDir: - description: Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - type: string - required: - - name + workingDir: {description: 'Container''s working directory. If not specified, the container runtime''s default will be used, which might be configured in the container image. Cannot be updated.', type: string} + required: [name] type: object endpoint: properties: - service_host: - type: string - service_port: - format: int32 - type: integer - type: - type: string + service_host: {type: string} + service_port: {format: int32, type: integer} + type: {type: string} type: object - envSecretRefName: - type: string - modelUri: - type: string - serviceAccountName: - type: string - type: - type: string + envSecretRefName: {type: string} + modelUri: {type: string} + serviceAccountName: {type: string} + type: {type: string} type: object graph: properties: @@ -2585,315 +1583,200 @@ spec: properties: endpoint: properties: - service_host: - type: string - service_port: - format: int32 - type: integer - type: - type: string + service_host: {type: string} + service_port: {format: int32, type: integer} + type: {type: string} type: object - envSecretRefName: - type: string - implementation: - type: string + envSecretRefName: {type: string} + implementation: {type: string} methods: - items: - type: string + items: {type: string} type: array - modelUri: - type: string - name: - type: string + modelUri: {type: string} + name: {type: string} parameters: items: properties: - name: - type: string - type: - type: string - value: - type: string + name: {type: string} + type: {type: string} + value: {type: string} type: object type: array - serviceAccountName: - type: string - type: - type: string + serviceAccountName: {type: string} + type: {type: string} type: object type: array endpoint: properties: - service_host: - type: string - service_port: - format: int32 - type: integer - type: - type: string + service_host: {type: string} + service_port: {format: int32, type: integer} + type: {type: string} type: object - envSecretRefName: - type: string - implementation: - type: string + envSecretRefName: {type: string} + implementation: {type: string} methods: - items: - type: string + items: {type: string} type: array - modelUri: - type: string - name: - type: string + modelUri: {type: string} + name: {type: string} parameters: items: properties: - name: - type: string - type: - type: string - value: - type: string + name: {type: string} + type: {type: string} + value: {type: string} type: object type: array - serviceAccountName: - type: string - type: - type: string + serviceAccountName: {type: string} + type: {type: string} type: object type: array endpoint: properties: - service_host: - type: string - service_port: - format: int32 - type: integer - type: - type: string + service_host: {type: string} + service_port: {format: int32, type: integer} + type: {type: string} type: object - envSecretRefName: - type: string - implementation: - type: string + envSecretRefName: {type: string} + implementation: {type: string} methods: - items: - type: string + items: {type: string} type: array - modelUri: - type: string - name: - type: string + modelUri: {type: string} + name: {type: string} parameters: items: properties: - name: - type: string - type: - type: string - value: - type: string + name: {type: string} + type: {type: string} + value: {type: string} type: object type: array - serviceAccountName: - type: string - type: - type: string + serviceAccountName: {type: string} + type: {type: string} type: object type: array endpoint: properties: - service_host: - type: string - service_port: - format: int32 - type: integer - type: - type: string + service_host: {type: string} + service_port: {format: int32, type: integer} + type: {type: string} type: object - envSecretRefName: - type: string - implementation: - type: string + envSecretRefName: {type: string} + implementation: {type: string} methods: - items: - type: string + items: {type: string} type: array - modelUri: - type: string - name: - type: string + modelUri: {type: string} + name: {type: string} parameters: items: properties: - name: - type: string - type: - type: string - value: - type: string + name: {type: string} + type: {type: string} + value: {type: string} type: object type: array - serviceAccountName: - type: string - type: - type: string + serviceAccountName: {type: string} + type: {type: string} type: object type: array endpoint: properties: - service_host: - type: string - service_port: - format: int32 - type: integer - type: - type: string + service_host: {type: string} + service_port: {format: int32, type: integer} + type: {type: string} type: object - envSecretRefName: - type: string - implementation: - type: string + envSecretRefName: {type: string} + implementation: {type: string} methods: - items: - type: string + items: {type: string} type: array - modelUri: - type: string - name: - type: string + modelUri: {type: string} + name: {type: string} parameters: items: properties: - name: - type: string - type: - type: string - value: - type: string - required: - - name - - type - - value + name: {type: string} + type: {type: string} + value: {type: string} + required: [name, type, value] type: object type: array - serviceAccountName: - type: string - type: - type: string - required: - - name + serviceAccountName: {type: string} + type: {type: string} + required: [name] type: object labels: - additionalProperties: - type: string + additionalProperties: {type: string} type: object - name: - type: string - replicas: - format: int32 - type: integer + name: {type: string} + replicas: {format: int32, type: integer} + shadow: {type: string} svcOrchSpec: properties: env: items: description: EnvVar represents an environment variable present in a Container. properties: - name: - description: Name of the environment variable. Must be a C_IDENTIFIER. - type: string - value: - description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".' - type: string + name: {description: Name of the environment variable. Must be a C_IDENTIFIER., type: string} + value: {description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".', type: string} valueFrom: description: Source for the environment variable's value. Cannot be used if value is not empty. properties: configMapKeyRef: description: Selects a key of a ConfigMap. properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap or it's key must be defined - type: boolean - required: - - key + key: {description: The key to select., type: string} + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the ConfigMap or it's key must be defined, type: boolean} + required: [key] type: object fieldRef: description: 'Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.' properties: - apiVersion: - description: Version of the schema the FieldPath is written in terms of, defaults to "v1". - type: string - fieldPath: - description: Path of the field to select in the specified API version. - type: string - required: - - fieldPath + apiVersion: {description: 'Version of the schema the FieldPath is written in terms of, defaults to "v1".', type: string} + fieldPath: {description: Path of the field to select in the specified API version., type: string} + required: [fieldPath] type: object resourceFieldRef: description: 'Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.' properties: - containerName: - description: 'Container name: required for volumes, optional for env vars' - type: string - divisor: - description: Specifies the output format of the exposed resources, defaults to "1" - type: string - resource: - description: 'Required: resource to select' - type: string - required: - - resource + containerName: {description: 'Container name: required for volumes, optional for env vars', type: string} + divisor: {description: 'Specifies the output format of the exposed resources, defaults to "1"', type: string} + resource: {description: 'Required: resource to select', type: string} + required: [resource] type: object secretKeyRef: description: Selects a key of a secret in the pod's namespace properties: - key: - description: The key of the secret to select from. Must be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret or it's key must be defined - type: boolean - required: - - key + key: {description: The key of the secret to select from. Must be a valid secret key., type: string} + name: {description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?', type: string} + optional: {description: Specify whether the Secret or it's key must be defined, type: boolean} + required: [key] type: object type: object - required: - - name + required: [name] type: object type: array resources: description: ResourceRequirements describes the compute resource requirements. properties: limits: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string + additionalProperties: {type: string} description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object type: object type: object - traffic: - format: int32 - type: integer - required: - - graph - - name + traffic: {format: int32, type: integer} + required: [graph, name] type: object type: array - required: - - predictors + required: [predictors] type: object status: description: SeldonDeploymentStatus defines the observed state of SeldonDeployment @@ -2901,49 +1784,31 @@ spec: deploymentStatus: additionalProperties: properties: - availableReplicas: - format: int32 - type: integer - description: - type: string - explainerFor: - type: string - name: - type: string - replicas: - format: int32 - type: integer - status: - type: string + availableReplicas: {format: int32, type: integer} + description: {type: string} + explainerFor: {type: string} + name: {type: string} + replicas: {format: int32, type: integer} + status: {type: string} type: object type: object - description: - type: string + description: {type: string} serviceStatus: additionalProperties: properties: - explainerFor: - type: string - grpcEndpoint: - type: string - httpEndpoint: - type: string - svcName: - type: string + explainerFor: {type: string} + grpcEndpoint: {type: string} + httpEndpoint: {type: string} + svcName: {type: string} type: object type: object - state: - type: string + state: {type: string} type: object type: object version: v1alpha2 versions: - - name: v1alpha2 - served: true - storage: true + - {name: v1alpha2, served: true, storage: true} status: - acceptedNames: - kind: '' - plural: '' + acceptedNames: {kind: '', plural: ''} conditions: [] storedVersions: [] diff --git a/helm-charts/seldon-core-operator/templates/deployment_seldon-controller-manager.yaml b/helm-charts/seldon-core-operator/templates/deployment_seldon-controller-manager.yaml index 043816a9d5..a9eb144447 100644 --- a/helm-charts/seldon-core-operator/templates/deployment_seldon-controller-manager.yaml +++ b/helm-charts/seldon-core-operator/templates/deployment_seldon-controller-manager.yaml @@ -1,96 +1,51 @@ apiVersion: apps/v1 kind: Deployment metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' - control-plane: seldon-controller-manager + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}', control-plane: seldon-controller-manager} name: seldon-controller-manager namespace: '{{ .Release.Namespace }}' spec: replicas: 1 selector: - matchLabels: - app: seldon - app.kubernetes.io/instance: seldon1 - app.kubernetes.io/name: seldon - app.kubernetes.io/version: v0.5 - control-plane: seldon-controller-manager + matchLabels: {app: seldon, app.kubernetes.io/instance: seldon1, app.kubernetes.io/name: seldon, app.kubernetes.io/version: v0.5, control-plane: seldon-controller-manager} template: metadata: - annotations: - prometheus.io/scrape: 'true' - labels: - app: seldon - app.kubernetes.io/instance: seldon1 - app.kubernetes.io/name: seldon - app.kubernetes.io/version: v0.5 - control-plane: seldon-controller-manager + annotations: {prometheus.io/scrape: 'true'} + labels: {app: seldon, app.kubernetes.io/instance: seldon1, app.kubernetes.io/name: seldon, app.kubernetes.io/version: v0.5, control-plane: seldon-controller-manager} spec: containers: - - args: - - --enable-leader-election - - --webhook-port={{ .Values.webhook.port }} - command: - - /manager + - args: [--enable-leader-election, '--webhook-port={{ .Values.webhook.port }}'] + command: [/manager] env: - name: POD_NAMESPACE valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: AMBASSADOR_ENABLED - value: '{{ .Values.ambassador.enabled }}' - - name: AMBASSADOR_SINGLE_NAMESPACE - value: '{{ .Values.ambassador.singleNamespace }}' - - name: ENGINE_CONTAINER_IMAGE_AND_VERSION - value: '{{ .Values.engine.image.registry }}/{{ .Values.engine.image.repository }}:{{ .Values.engine.image.tag }}' - - name: ENGINE_CONTAINER_IMAGE_PULL_POLICY - value: '{{ .Values.engine.image.pullPolicy }}' - - name: ENGINE_CONTAINER_SERVICE_ACCOUNT_NAME - value: '{{ .Values.engine.serviceAccount.name }}' - - name: ENGINE_CONTAINER_USER - value: '{{ .Values.engine.user }}' - - name: ENGINE_LOG_MESSAGES_EXTERNALLY - value: '{{ .Values.engine.logMessagesExternally }}' - - name: PREDICTIVE_UNIT_SERVICE_PORT - value: '{{ .Values.predictiveUnit.port }}' - - name: ENGINE_SERVER_GRPC_PORT - value: '{{ .Values.engine.grpc.port }}' - - name: ENGINE_SERVER_PORT - value: '{{ .Values.engine.port }}' - - name: ENGINE_PROMETHEUS_PATH - value: '{{ .Values.engine.prometheus.path }}' - - name: ISTIO_ENABLED - value: '{{ .Values.istio.enabled }}' - - name: ISTIO_GATEWAY - value: '{{ .Values.istio.gateway }}' + fieldRef: {fieldPath: metadata.namespace} + - {name: AMBASSADOR_ENABLED, value: '{{ .Values.ambassador.enabled }}'} + - {name: AMBASSADOR_SINGLE_NAMESPACE, value: '{{ .Values.ambassador.singleNamespace }}'} + - {name: ENGINE_CONTAINER_IMAGE_AND_VERSION, value: '{{ .Values.engine.image.registry }}/{{ .Values.engine.image.repository }}:{{ .Values.engine.image.tag }}'} + - {name: ENGINE_CONTAINER_IMAGE_PULL_POLICY, value: '{{ .Values.engine.image.pullPolicy }}'} + - {name: ENGINE_CONTAINER_SERVICE_ACCOUNT_NAME, value: '{{ .Values.engine.serviceAccount.name }}'} + - {name: ENGINE_CONTAINER_USER, value: '{{ .Values.engine.user }}'} + - {name: ENGINE_LOG_MESSAGES_EXTERNALLY, value: '{{ .Values.engine.logMessagesExternally }}'} + - {name: PREDICTIVE_UNIT_SERVICE_PORT, value: '{{ .Values.predictiveUnit.port }}'} + - {name: ENGINE_SERVER_GRPC_PORT, value: '{{ .Values.engine.grpc.port }}'} + - {name: ENGINE_SERVER_PORT, value: '{{ .Values.engine.port }}'} + - {name: ENGINE_PROMETHEUS_PATH, value: '{{ .Values.engine.prometheus.path }}'} + - {name: ISTIO_ENABLED, value: '{{ .Values.istio.enabled }}'} + - {name: ISTIO_GATEWAY, value: '{{ .Values.istio.gateway }}'} image: '{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}' imagePullPolicy: '{{ .Values.image.pullPolicy }}' name: manager ports: - - containerPort: {{ .Values.webhook.port }} - name: webhook-server - protocol: TCP - - containerPort: 8080 - name: metrics - protocol: TCP + - {containerPort: {{ .Values.webhook.port }}, name: webhook-server, protocol: TCP} + - {containerPort: 8080, name: metrics, protocol: TCP} resources: - limits: - cpu: 100m - memory: 30Mi - requests: - cpu: 100m - memory: 20Mi + limits: {cpu: 100m, memory: 30Mi} + requests: {cpu: 100m, memory: 20Mi} volumeMounts: - - mountPath: /tmp/k8s-webhook-server/serving-certs - name: cert - readOnly: true + - {mountPath: /tmp/k8s-webhook-server/serving-certs, name: cert, readOnly: true} serviceAccountName: seldon-manager terminationGracePeriodSeconds: 10 volumes: - name: cert - secret: - defaultMode: 420 - secretName: seldon-webhook-server-cert + secret: {defaultMode: 420, secretName: seldon-webhook-server-cert} diff --git a/helm-charts/seldon-core-operator/templates/deployment_seldon-spartakus-volunteer.yaml b/helm-charts/seldon-core-operator/templates/deployment_seldon-spartakus-volunteer.yaml index 4fd4d4db04..f56eadb941 100644 --- a/helm-charts/seldon-core-operator/templates/deployment_seldon-spartakus-volunteer.yaml +++ b/helm-charts/seldon-core-operator/templates/deployment_seldon-spartakus-volunteer.yaml @@ -1,33 +1,24 @@ {{- if .Values.usageMetrics.enabled }} apiVersion: apps/v1 kind: Deployment -metadata: - name: seldon-spartakus-volunteer - namespace: kube-system +metadata: {name: seldon-spartakus-volunteer, namespace: kube-system} spec: replicas: 1 selector: - matchLabels: - app: seldon-spartakus-volunteer + matchLabels: {app: seldon-spartakus-volunteer} template: metadata: - labels: - app: seldon-spartakus-volunteer + labels: {app: seldon-spartakus-volunteer} spec: containers: - - args: - - -c - - /spartakus volunteer --cluster-id=$(cat /proc/sys/kernel/random/uuid) --database=http://seldon-core-stats.seldon.io --extensions=/etc/config/spartakus_volunteer_extensions - command: - - /bin/sh + - args: [-c, '/spartakus volunteer --cluster-id=$(cat /proc/sys/kernel/random/uuid) --database=http://seldon-core-stats.seldon.io --extensions=/etc/config/spartakus_volunteer_extensions'] + command: [/bin/sh] image: gcr.io/google_containers/spartakus-amd64:v1.1.0 name: seldon-spartakus-volunteer volumeMounts: - - mountPath: /etc/config - name: seldon-spartakus-config-volume + - {mountPath: /etc/config, name: seldon-spartakus-config-volume} serviceAccountName: seldon-spartakus-volunteer volumes: - - configMap: - name: seldon-spartakus-config + - configMap: {name: seldon-spartakus-config} name: seldon-spartakus-config-volume {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/issuer_seldon-selfsigned-issuer.yaml b/helm-charts/seldon-core-operator/templates/issuer_seldon-selfsigned-issuer.yaml index 6da1906d6f..1e79381f0e 100644 --- a/helm-charts/seldon-core-operator/templates/issuer_seldon-selfsigned-issuer.yaml +++ b/helm-charts/seldon-core-operator/templates/issuer_seldon-selfsigned-issuer.yaml @@ -2,11 +2,7 @@ apiVersion: certmanager.k8s.io/v1alpha1 kind: Issuer metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-selfsigned-issuer namespace: '{{ .Release.Namespace }}' spec: diff --git a/helm-charts/seldon-core-operator/templates/role_seldon-leader-election-role.yaml b/helm-charts/seldon-core-operator/templates/role_seldon-leader-election-role.yaml index 8102fad986..d330100663 100644 --- a/helm-charts/seldon-core-operator/templates/role_seldon-leader-election-role.yaml +++ b/helm-charts/seldon-core-operator/templates/role_seldon-leader-election-role.yaml @@ -1,37 +1,16 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-leader-election-role namespace: '{{ .Release.Namespace }}' rules: -- apiGroups: - - '' - resources: - - configmaps - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - '' - resources: - - configmaps/status - verbs: - - get - - update - - patch -- apiGroups: - - '' - resources: - - events - verbs: - - create +- apiGroups: [''] + resources: [configmaps] + verbs: [get, list, watch, create, update, patch, delete] +- apiGroups: [''] + resources: [configmaps/status] + verbs: [get, update, patch] +- apiGroups: [''] + resources: [events] + verbs: [create] diff --git a/helm-charts/seldon-core-operator/templates/role_seldon-manager-cm-role.yaml b/helm-charts/seldon-core-operator/templates/role_seldon-manager-cm-role.yaml index d27e2d60b2..cf3cf8d582 100644 --- a/helm-charts/seldon-core-operator/templates/role_seldon-manager-cm-role.yaml +++ b/helm-charts/seldon-core-operator/templates/role_seldon-manager-cm-role.yaml @@ -4,21 +4,12 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: creationTimestamp: null - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-manager-cm-role namespace: '{{ .Release.Namespace }}' rules: -- apiGroups: - - '' - resources: - - configmaps - verbs: - - get - - list - - watch +- apiGroups: [''] + resources: [configmaps] + verbs: [get, list, watch] {{- end }} {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/rolebinding_seldon-leader-election-rolebinding.yaml b/helm-charts/seldon-core-operator/templates/rolebinding_seldon-leader-election-rolebinding.yaml index 3b47b1f1d6..786d08eb24 100644 --- a/helm-charts/seldon-core-operator/templates/rolebinding_seldon-leader-election-rolebinding.yaml +++ b/helm-charts/seldon-core-operator/templates/rolebinding_seldon-leader-election-rolebinding.yaml @@ -1,18 +1,9 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-leader-election-rolebinding namespace: '{{ .Release.Namespace }}' -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: seldon-leader-election-role +roleRef: {apiGroup: rbac.authorization.k8s.io, kind: Role, name: seldon-leader-election-role} subjects: -- kind: ServiceAccount - name: seldon-manager - namespace: '{{ .Release.Namespace }}' +- {kind: ServiceAccount, name: seldon-manager, namespace: '{{ .Release.Namespace }}'} diff --git a/helm-charts/seldon-core-operator/templates/rolebinding_seldon-manager-cm-rolebinding.yaml b/helm-charts/seldon-core-operator/templates/rolebinding_seldon-manager-cm-rolebinding.yaml index c953ccbe36..37b51d29fb 100644 --- a/helm-charts/seldon-core-operator/templates/rolebinding_seldon-manager-cm-rolebinding.yaml +++ b/helm-charts/seldon-core-operator/templates/rolebinding_seldon-manager-cm-rolebinding.yaml @@ -3,20 +3,11 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-manager-cm-rolebinding namespace: '{{ .Release.Namespace }}' -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: seldon-manager-cm-role +roleRef: {apiGroup: rbac.authorization.k8s.io, kind: Role, name: seldon-manager-cm-role} subjects: -- kind: ServiceAccount - name: seldon-manager - namespace: '{{ .Release.Namespace }}' +- {kind: ServiceAccount, name: seldon-manager, namespace: '{{ .Release.Namespace }}'} {{- end }} {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/service_seldon-controller-manager-metrics-service.yaml b/helm-charts/seldon-core-operator/templates/service_seldon-controller-manager-metrics-service.yaml index ac488b860b..526382f7ad 100644 --- a/helm-charts/seldon-core-operator/templates/service_seldon-controller-manager-metrics-service.yaml +++ b/helm-charts/seldon-core-operator/templates/service_seldon-controller-manager-metrics-service.yaml @@ -1,26 +1,11 @@ apiVersion: v1 kind: Service metadata: - annotations: - prometheus.io/port: '8443' - prometheus.io/scheme: https - prometheus.io/scrape: 'true' - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' - control-plane: seldon-controller-manager + annotations: {prometheus.io/port: '8443', prometheus.io/scheme: https, prometheus.io/scrape: 'true'} + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}', control-plane: seldon-controller-manager} name: seldon-controller-manager-metrics-service namespace: '{{ .Release.Namespace }}' spec: ports: - - name: https - port: 8443 - targetPort: https - selector: - app: seldon - app.kubernetes.io/instance: seldon1 - app.kubernetes.io/name: seldon - app.kubernetes.io/version: v0.5 - control-plane: seldon-controller-manager + - {name: https, port: 8443, targetPort: https} + selector: {app: seldon, app.kubernetes.io/instance: seldon1, app.kubernetes.io/name: seldon, app.kubernetes.io/version: v0.5, control-plane: seldon-controller-manager} diff --git a/helm-charts/seldon-core-operator/templates/service_seldon-webhook-service.yaml b/helm-charts/seldon-core-operator/templates/service_seldon-webhook-service.yaml index 68f87509fa..0e50ea6d45 100644 --- a/helm-charts/seldon-core-operator/templates/service_seldon-webhook-service.yaml +++ b/helm-charts/seldon-core-operator/templates/service_seldon-webhook-service.yaml @@ -1,20 +1,10 @@ apiVersion: v1 kind: Service metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: seldon-webhook-service namespace: '{{ .Release.Namespace }}' spec: ports: - - port: 443 - targetPort: {{ .Values.webhook.port }} - selector: - app: seldon - app.kubernetes.io/instance: seldon1 - app.kubernetes.io/name: seldon - app.kubernetes.io/version: v0.5 - control-plane: seldon-controller-manager + - {port: 443, targetPort: {{ .Values.webhook.port }}} + selector: {app: seldon, app.kubernetes.io/instance: seldon1, app.kubernetes.io/name: seldon, app.kubernetes.io/version: v0.5, control-plane: seldon-controller-manager} diff --git a/helm-charts/seldon-core-operator/templates/serviceaccount_seldon-manager.yaml b/helm-charts/seldon-core-operator/templates/serviceaccount_seldon-manager.yaml index 65582da31f..0936f4a024 100644 --- a/helm-charts/seldon-core-operator/templates/serviceaccount_seldon-manager.yaml +++ b/helm-charts/seldon-core-operator/templates/serviceaccount_seldon-manager.yaml @@ -2,11 +2,7 @@ apiVersion: v1 kind: ServiceAccount metadata: - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} name: '{{ .Values.serviceAccount.name }}' namespace: '{{ .Release.Namespace }}' {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/serviceaccount_seldon-spartakus-volunteer.yaml b/helm-charts/seldon-core-operator/templates/serviceaccount_seldon-spartakus-volunteer.yaml index 37a7ceab3d..e771bf2b81 100644 --- a/helm-charts/seldon-core-operator/templates/serviceaccount_seldon-spartakus-volunteer.yaml +++ b/helm-charts/seldon-core-operator/templates/serviceaccount_seldon-spartakus-volunteer.yaml @@ -1,7 +1,5 @@ {{- if .Values.usageMetrics.enabled }} apiVersion: v1 kind: ServiceAccount -metadata: - name: seldon-spartakus-volunteer - namespace: kube-system +metadata: {name: seldon-spartakus-volunteer, namespace: kube-system} {{- end }} diff --git a/helm-charts/seldon-core-operator/templates/webhook.yaml b/helm-charts/seldon-core-operator/templates/webhook.yaml index cb27d23fc0..5888a2f4fc 100644 --- a/helm-charts/seldon-core-operator/templates/webhook.yaml +++ b/helm-charts/seldon-core-operator/templates/webhook.yaml @@ -3,81 +3,50 @@ {{- $cert := genSignedCert "seldon-webhook-service" nil $altNames 365 $ca -}} --- +{{- if not .Values.certManager.enabled -}} +apiVersion: v1 +data: {ca.crt: '{{ $ca.Cert | b64enc }}', tls.crt: '{{ $cert.Cert | b64enc }}', tls.key: '{{ $cert.Key | b64enc }}'} +kind: Secret +metadata: {name: seldon-webhook-server-cert, namespace: '{{ .Release.Namespace }}'} +type: kubernetes.io/tls +{{- end }} +--- + apiVersion: admissionregistration.k8s.io/v1beta1 -kind: ValidatingWebhookConfiguration +kind: MutatingWebhookConfiguration metadata: - annotations: - certmanager.k8s.io/inject-ca-from: '{{ .Release.Namespace }}/seldon-serving-cert' + annotations: {certmanager.k8s.io/inject-ca-from: '{{ .Release.Namespace }}/seldon-serving-cert'} creationTimestamp: null - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' - name: seldon-validating-webhook-configuration + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} + name: seldon-mutating-webhook-configuration webhooks: - clientConfig: caBundle: '{{ $ca.Cert | b64enc }}' - service: - name: seldon-webhook-service - namespace: '{{ .Release.Namespace }}' - path: /validate-machinelearning-seldon-io-v1alpha2-seldondeployment + service: {name: seldon-webhook-service, namespace: '{{ .Release.Namespace }}', path: /mutate-machinelearning-seldon-io-v1alpha2-seldondeployment} failurePolicy: Fail - name: vseldondeployment.kb.io + name: mseldondeployment.kb.io rules: - - apiGroups: - - machinelearning.seldon.io - apiVersions: - - v1alpha2 - operations: - - CREATE - - UPDATE - resources: - - seldondeployments + - apiGroups: [machinelearning.seldon.io] + apiVersions: [v1alpha2] + operations: [CREATE, UPDATE] + resources: [seldondeployments] --- apiVersion: admissionregistration.k8s.io/v1beta1 -kind: MutatingWebhookConfiguration +kind: ValidatingWebhookConfiguration metadata: - annotations: - certmanager.k8s.io/inject-ca-from: '{{ .Release.Namespace }}/seldon-serving-cert' + annotations: {certmanager.k8s.io/inject-ca-from: '{{ .Release.Namespace }}/seldon-serving-cert'} creationTimestamp: null - labels: - app: seldon - app.kubernetes.io/instance: '{{ .Release.Name }}' - app.kubernetes.io/name: '{{ include "seldon.name" . }}' - app.kubernetes.io/version: '{{ .Chart.Version }}' - name: seldon-mutating-webhook-configuration + labels: {app: seldon, app.kubernetes.io/instance: '{{ .Release.Name }}', app.kubernetes.io/name: '{{ include "seldon.name" . }}', app.kubernetes.io/version: '{{ .Chart.Version }}'} + name: seldon-validating-webhook-configuration webhooks: - clientConfig: caBundle: '{{ $ca.Cert | b64enc }}' - service: - name: seldon-webhook-service - namespace: '{{ .Release.Namespace }}' - path: /mutate-machinelearning-seldon-io-v1alpha2-seldondeployment + service: {name: seldon-webhook-service, namespace: '{{ .Release.Namespace }}', path: /validate-machinelearning-seldon-io-v1alpha2-seldondeployment} failurePolicy: Fail - name: mseldondeployment.kb.io + name: vseldondeployment.kb.io rules: - - apiGroups: - - machinelearning.seldon.io - apiVersions: - - v1alpha2 - operations: - - CREATE - - UPDATE - resources: - - seldondeployments ---- - -{{- if not .Values.certManager.enabled -}} -apiVersion: v1 -data: - ca.crt: '{{ $ca.Cert | b64enc }}' - tls.crt: '{{ $cert.Cert | b64enc }}' - tls.key: '{{ $cert.Key | b64enc }}' -kind: Secret -metadata: - name: seldon-webhook-server-cert - namespace: '{{ .Release.Namespace }}' -type: kubernetes.io/tls -{{- end }} + - apiGroups: [machinelearning.seldon.io] + apiVersions: [v1alpha2] + operations: [CREATE, UPDATE] + resources: [seldondeployments] diff --git a/operator/api/v1alpha2/seldondeployment_webhook.go b/operator/api/v1alpha2/seldondeployment_webhook.go index eddbd2c56c..4da316b498 100644 --- a/operator/api/v1alpha2/seldondeployment_webhook.go +++ b/operator/api/v1alpha2/seldondeployment_webhook.go @@ -384,11 +384,18 @@ func checkPredictiveUnits(pu *PredictiveUnit, p *PredictorSpec, fldPath *field.P func checkTraffic(mlDep *SeldonDeployment, fldPath *field.Path, allErrs field.ErrorList) field.ErrorList { var trafficSum int32 = 0 + var shadows int = 0 for i := 0; i < len(mlDep.Spec.Predictors); i++ { p := mlDep.Spec.Predictors[i] trafficSum = trafficSum + p.Traffic + + fmt.Printf("%+v\n", p) + + if p.Shadow == "true" { + shadows += 1 + } } - if trafficSum != 100 && len(mlDep.Spec.Predictors) > 1 { + if trafficSum != 100 && (len(mlDep.Spec.Predictors)-shadows) > 1 { allErrs = append(allErrs, field.Invalid(fldPath, mlDep.Name, "Traffic must sum to 100 for multiple predictors")) } if trafficSum > 0 && trafficSum < 100 && len(mlDep.Spec.Predictors) == 1 { diff --git a/operator/config/crd/bases/machinelearning.seldon.io_seldondeployments.yaml b/operator/config/crd/bases/machinelearning.seldon.io_seldondeployments.yaml index 2d2b11d9cd..8e5539e9bd 100644 --- a/operator/config/crd/bases/machinelearning.seldon.io_seldondeployments.yaml +++ b/operator/config/crd/bases/machinelearning.seldon.io_seldondeployments.yaml @@ -5889,6 +5889,8 @@ spec: replicas: format: int32 type: integer + shadow: + type: string svcOrchSpec: properties: env: diff --git a/operator/controllers/seldondeployment_controller.go b/operator/controllers/seldondeployment_controller.go index 407bc2b0a9..cfb4bcdca2 100644 --- a/operator/controllers/seldondeployment_controller.go +++ b/operator/controllers/seldondeployment_controller.go @@ -172,9 +172,36 @@ func createIstioResources(mlDep *machinelearningv1alpha2.SeldonDeployment, routesGrpc := make([]istio.HTTPRouteDestination, len(mlDep.Spec.Predictors)) drules := make([]*istio.DestinationRule, len(mlDep.Spec.Predictors)) for i := 0; i < len(mlDep.Spec.Predictors); i++ { + p := mlDep.Spec.Predictors[i] pSvcName := machinelearningv1alpha2.GetPredictorKey(mlDep, &p) + if p.Shadow == "true" { + //if there's a shadow then add a mirror section to the VirtualService + + httpVsvc.Spec.HTTP[0].Mirror = &istio.Destination{ + Host: pSvcName + "." + namespace + ".svc.cluster.local", + Subset: p.Name, + Port: istio.PortSelector{ + Number: uint32(ports[i].httpPort), + }, + } + + fmt.Println("VirtualService for " + p.Name) + out, _ := json.Marshal(httpVsvc) + fmt.Println(string(out)) + + grpcVsvc.Spec.HTTP[0].Mirror = &istio.Destination{ + Host: pSvcName + "." + namespace + ".svc.cluster.local", + Subset: p.Name, + Port: istio.PortSelector{ + Number: uint32(ports[i].grpcPort), + }, + } + + continue + } + drule := &istio.DestinationRule{ ObjectMeta: metav1.ObjectMeta{ Name: pSvcName, @@ -224,6 +251,14 @@ func createIstioResources(mlDep *machinelearningv1alpha2.SeldonDeployment, } httpVsvc.Spec.HTTP[0].Route = routesHttp grpcVsvc.Spec.HTTP[0].Route = routesGrpc + + // TODO: currently this is producing a VirtualService with two destinationRules + // the second has an empty host and both have weight zero + // like a kind of ghost entry for the shadow? + + fmt.Println("VirtualService for " + mlDep.Name) + out, _ := json.Marshal(httpVsvc) + fmt.Println(string(out)) if httpAllowed && grpcAllowed { vscs := make([]*istio.VirtualService, 2) vscs[0] = httpVsvc @@ -368,39 +403,34 @@ func createComponents(r *SeldonDeploymentReconciler, mlDep *machinelearningv1alp port := int(svc.Spec.Ports[0].Port) - //create predictor service, except for shadow istio predictor - if p.Shadow != "true" { - - if svc.Spec.Ports[0].Name == "grpc" { - httpAllowed = false - externalPorts[i] = httpGrpcPorts{httpPort: 0, grpcPort: port} - psvc, err := createPredictorService(pSvcName, seldonId, &p, mlDep, 0, port, "", log) - if err != nil { - return nil, err - } - - c.services = append(c.services, psvc) - - c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ - SvcName: pSvcName, - GrpcEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(port), - } - } else { - externalPorts[i] = httpGrpcPorts{httpPort: port, grpcPort: 0} - grpcAllowed = false - psvc, err := createPredictorService(pSvcName, seldonId, &p, mlDep, port, 0, "", log) - if err != nil { - return nil, err - } - - c.services = append(c.services, psvc) - - c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ - SvcName: pSvcName, - HttpEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(port), - } + if svc.Spec.Ports[0].Name == "grpc" { + httpAllowed = false + externalPorts[i] = httpGrpcPorts{httpPort: 0, grpcPort: port} + psvc, err := createPredictorService(pSvcName, seldonId, &p, mlDep, 0, port, "", log) + if err != nil { + return nil, err } + c.services = append(c.services, psvc) + + c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ + SvcName: pSvcName, + GrpcEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(port), + } + } else { + externalPorts[i] = httpGrpcPorts{httpPort: port, grpcPort: 0} + grpcAllowed = false + psvc, err := createPredictorService(pSvcName, seldonId, &p, mlDep, port, 0, "", log) + if err != nil { + return nil, err + } + + c.services = append(c.services, psvc) + + c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ + SvcName: pSvcName, + HttpEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(port), + } } } @@ -449,45 +479,41 @@ func createComponents(r *SeldonDeploymentReconciler, mlDep *machinelearningv1alp } - //create predictor service, except for shadow istio predictor - if p.Shadow != "true" { + //Create Service for Predictor - exposed externally (ambassador or istio) and points at engine + httpPort := engine_http_port + if httpAllowed == false { + httpPort = 0 + } + grpcPort := engine_grpc_port + if grpcAllowed == false { + grpcPort = 0 + } + psvc, err := createPredictorService(pSvcName, seldonId, &p, mlDep, httpPort, grpcPort, "", log) + if err != nil { - //Create Service for Predictor - exposed externally (ambassador or istio) and points at engine - httpPort := engine_http_port - if httpAllowed == false { - httpPort = 0 - } - grpcPort := engine_grpc_port - if grpcAllowed == false { - grpcPort = 0 - } - psvc, err := createPredictorService(pSvcName, seldonId, &p, mlDep, httpPort, grpcPort, "", log) - if err != nil { + return nil, err + } - return nil, err + c.services = append(c.services, psvc) + if httpAllowed && grpcAllowed { + c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ + SvcName: pSvcName, + HttpEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(engine_http_port), + GrpcEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(engine_grpc_port), } - - c.services = append(c.services, psvc) - if httpAllowed && grpcAllowed { - c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ - SvcName: pSvcName, - HttpEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(engine_http_port), - GrpcEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(engine_grpc_port), - } - } else if httpAllowed { - c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ - SvcName: pSvcName, - HttpEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(engine_http_port), - } - } else if grpcAllowed { - c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ - SvcName: pSvcName, - GrpcEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(engine_grpc_port), - } + } else if httpAllowed { + c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ + SvcName: pSvcName, + HttpEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(engine_http_port), + } + } else if grpcAllowed { + c.serviceDetails[pSvcName] = &machinelearningv1alpha2.ServiceStatus{ + SvcName: pSvcName, + GrpcEndpoint: pSvcName + "." + namespace + ":" + strconv.Itoa(engine_grpc_port), } - - externalPorts[i] = httpGrpcPorts{httpPort: httpPort, grpcPort: grpcPort} } + + externalPorts[i] = httpGrpcPorts{httpPort: httpPort, grpcPort: grpcPort} } err = createExplainer(r, mlDep, &p, &c, pSvcName, log) @@ -681,6 +707,10 @@ func createDeploymentWithoutEngine(depName string, seldonId string, seldonPodSpe }, } + if p.Shadow == "true" { + deploy.Spec.Template.ObjectMeta.Labels["shadow"] = "true" + } + if seldonPodSpec != nil { deploy.Spec.Template.Spec = seldonPodSpec.Spec // add more annotations