2019-12-23 10:55:38 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
|
|
|
name: istio-operator
|
|
|
|
labels:
|
|
|
|
kubernetes.io/minikube-addons: istio
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
...
|
|
|
|
---
|
2021-08-10 21:24:43 +00:00
|
|
|
apiVersion: apiextensions.k8s.io/v1
|
2019-12-23 10:55:38 +00:00
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
2020-03-20 15:35:23 +00:00
|
|
|
name: istiooperators.install.istio.io
|
2019-12-23 10:55:38 +00:00
|
|
|
labels:
|
|
|
|
kubernetes.io/minikube-addons: istio
|
2020-03-20 15:35:23 +00:00
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
2019-12-23 10:55:38 +00:00
|
|
|
spec:
|
2022-01-31 17:30:27 +00:00
|
|
|
conversion:
|
|
|
|
strategy: None
|
2019-12-23 10:55:38 +00:00
|
|
|
group: install.istio.io
|
|
|
|
names:
|
2020-03-20 15:35:23 +00:00
|
|
|
kind: IstioOperator
|
|
|
|
listKind: IstioOperatorList
|
|
|
|
plural: istiooperators
|
|
|
|
singular: istiooperator
|
2019-12-23 10:55:38 +00:00
|
|
|
shortNames:
|
2020-03-20 15:35:23 +00:00
|
|
|
- iop
|
2022-01-31 17:30:27 +00:00
|
|
|
- io
|
2019-12-23 10:55:38 +00:00
|
|
|
scope: Namespaced
|
|
|
|
versions:
|
2020-03-20 15:35:23 +00:00
|
|
|
- name: v1alpha1
|
2021-11-25 17:57:27 +00:00
|
|
|
subresources:
|
|
|
|
status: {}
|
|
|
|
schema:
|
|
|
|
openAPIV3Schema:
|
|
|
|
type: object
|
|
|
|
x-kubernetes-preserve-unknown-fields: true
|
2019-12-23 10:55:38 +00:00
|
|
|
served: true
|
|
|
|
storage: true
|
2022-01-31 17:30:27 +00:00
|
|
|
subresources:
|
|
|
|
status: {}
|
|
|
|
schema:
|
|
|
|
openAPIV3Schema:
|
|
|
|
type: object
|
|
|
|
x-kubernetes-preserve-unknown-fields: true
|
2019-12-23 10:55:38 +00:00
|
|
|
...
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
namespace: istio-operator
|
|
|
|
name: istio-operator
|
|
|
|
labels:
|
|
|
|
kubernetes.io/minikube-addons: istio
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
...
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
|
|
|
name: istio-operator
|
|
|
|
labels:
|
|
|
|
kubernetes.io/minikube-addons: istio
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
rules:
|
|
|
|
# istio groups
|
|
|
|
- apiGroups:
|
|
|
|
- authentication.istio.io
|
|
|
|
resources:
|
|
|
|
- '*'
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- config.istio.io
|
|
|
|
resources:
|
|
|
|
- '*'
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- install.istio.io
|
|
|
|
resources:
|
|
|
|
- '*'
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- networking.istio.io
|
|
|
|
resources:
|
|
|
|
- '*'
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- security.istio.io
|
|
|
|
resources:
|
|
|
|
- '*'
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
# k8s groups
|
|
|
|
- apiGroups:
|
|
|
|
- admissionregistration.k8s.io
|
|
|
|
resources:
|
|
|
|
- mutatingwebhookconfigurations
|
|
|
|
- validatingwebhookconfigurations
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- apiextensions.k8s.io
|
|
|
|
resources:
|
|
|
|
- customresourcedefinitions.apiextensions.k8s.io
|
|
|
|
- customresourcedefinitions
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- apps
|
|
|
|
- extensions
|
|
|
|
resources:
|
|
|
|
- daemonsets
|
|
|
|
- deployments
|
|
|
|
- deployments/finalizers
|
|
|
|
- replicasets
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- autoscaling
|
|
|
|
resources:
|
|
|
|
- horizontalpodautoscalers
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- monitoring.coreos.com
|
|
|
|
resources:
|
|
|
|
- servicemonitors
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- create
|
2022-01-31 17:30:27 +00:00
|
|
|
- update
|
2019-12-23 10:55:38 +00:00
|
|
|
- apiGroups:
|
|
|
|
- policy
|
|
|
|
resources:
|
|
|
|
- poddisruptionbudgets
|
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
- apiGroups:
|
|
|
|
- rbac.authorization.k8s.io
|
|
|
|
resources:
|
|
|
|
- clusterrolebindings
|
|
|
|
- clusterroles
|
|
|
|
- roles
|
|
|
|
- rolebindings
|
|
|
|
verbs:
|
|
|
|
- '*'
|
2022-01-31 17:30:27 +00:00
|
|
|
- apiGroups:
|
|
|
|
- coordination.k8s.io
|
|
|
|
resources:
|
|
|
|
- leases
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- create
|
|
|
|
- update
|
2019-12-23 10:55:38 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
2022-01-31 17:30:27 +00:00
|
|
|
- configmaps
|
2019-12-23 10:55:38 +00:00
|
|
|
- endpoints
|
|
|
|
- events
|
|
|
|
- namespaces
|
|
|
|
- pods
|
2022-01-31 17:30:27 +00:00
|
|
|
- pods/proxy
|
|
|
|
- pods/portforward
|
2019-12-23 10:55:38 +00:00
|
|
|
- persistentvolumeclaims
|
|
|
|
- secrets
|
|
|
|
- services
|
2022-01-31 17:30:27 +00:00
|
|
|
- serviceaccounts
|
2019-12-23 10:55:38 +00:00
|
|
|
verbs:
|
|
|
|
- '*'
|
|
|
|
...
|
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: istio-operator
|
|
|
|
labels:
|
|
|
|
kubernetes.io/minikube-addons: istio
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: istio-operator
|
|
|
|
namespace: istio-operator
|
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: istio-operator
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
...
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
namespace: istio-operator
|
|
|
|
labels:
|
|
|
|
name: istio-operator
|
|
|
|
kubernetes.io/minikube-addons: istio
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
name: istio-operator-metrics
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: http-metrics
|
|
|
|
port: 8383
|
|
|
|
targetPort: 8383
|
2022-01-31 17:30:27 +00:00
|
|
|
protocol: TCP
|
2019-12-23 10:55:38 +00:00
|
|
|
selector:
|
|
|
|
name: istio-operator
|
|
|
|
...
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
namespace: istio-operator
|
|
|
|
name: istio-operator
|
|
|
|
labels:
|
|
|
|
kubernetes.io/minikube-addons: istio
|
2022-01-31 17:30:27 +00:00
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
2019-12-23 10:55:38 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: istio-operator
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: istio-operator
|
|
|
|
kubernetes.io/minikube-addons: istio
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
spec:
|
|
|
|
serviceAccountName: istio-operator
|
|
|
|
containers:
|
|
|
|
- name: istio-operator
|
2021-01-13 04:01:37 +00:00
|
|
|
image: {{.CustomRegistries.IstioOperator | default .ImageRepository | default .Registries.IstioOperator }}{{.Images.IstioOperator}}
|
2019-12-23 10:55:38 +00:00
|
|
|
command:
|
2020-03-20 15:35:23 +00:00
|
|
|
- operator
|
2019-12-23 10:55:38 +00:00
|
|
|
- server
|
2022-01-31 17:30:27 +00:00
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- ALL
|
|
|
|
privileged: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
runAsGroup: 1337
|
|
|
|
runAsUser: 1337
|
|
|
|
runAsNonRoot: true
|
2021-01-13 04:01:37 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
2019-12-23 10:55:38 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 200m
|
|
|
|
memory: 256Mi
|
|
|
|
requests:
|
|
|
|
cpu: 50m
|
|
|
|
memory: 128Mi
|
|
|
|
env:
|
|
|
|
- name: WATCH_NAMESPACE
|
2020-03-20 15:35:23 +00:00
|
|
|
value: "istio-system"
|
2019-12-23 10:55:38 +00:00
|
|
|
- name: LEADER_ELECTION_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: OPERATOR_NAME
|
|
|
|
value: "istio-operator"
|
2022-01-31 17:30:27 +00:00
|
|
|
- name: WAIT_FOR_RESOURCES_TIMEOUT
|
|
|
|
value: "300s"
|
2019-12-23 10:55:38 +00:00
|
|
|
...
|