85 lines
2.2 KiB
Text
85 lines
2.2 KiB
Text
|
# GENERATED FILE. Use with Kubernetes 1.7+
|
||
|
# TO UPDATE, modify files in install/kubernetes/templates and run install/updateVersion.sh
|
||
|
################################
|
||
|
# Istio initializer
|
||
|
################################
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: istio-inject
|
||
|
namespace: {{ istio_namespace }}
|
||
|
data:
|
||
|
config: |-
|
||
|
policy: "enabled"
|
||
|
namespaces: [""] # everything, aka v1.NamepsaceAll, aka cluster-wide
|
||
|
initializerName: "sidecar.initializer.istio.io"
|
||
|
params:
|
||
|
initImage: {{ istio_proxy_init_image_repo }}:{{ istio_proxy_init_image_tag }}
|
||
|
proxyImage: {{ istio_proxy_image_repo }}:{{ istio_proxy_image_tag }}
|
||
|
verbosity: 2
|
||
|
version: 0.2.6
|
||
|
meshConfigMapName: istio
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: istio-initializer-service-account
|
||
|
namespace: {{ istio_namespace }}
|
||
|
---
|
||
|
apiVersion: apps/v1beta1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: istio-initializer
|
||
|
namespace: {{ istio_namespace }}
|
||
|
annotations:
|
||
|
sidecar.istio.io/inject: "false"
|
||
|
initializers:
|
||
|
pending: []
|
||
|
labels:
|
||
|
istio: istio-initializer
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
name: istio-initializer
|
||
|
labels:
|
||
|
istio: initializer
|
||
|
annotations:
|
||
|
sidecar.istio.io/inject: "false"
|
||
|
spec:
|
||
|
serviceAccountName: istio-initializer-service-account
|
||
|
containers:
|
||
|
- name: initializer
|
||
|
image: {{ istio_sidecar_initializer_image_repo }}:{{ istio_sidecar_initializer_image_tag }}
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
args:
|
||
|
- --port=8083
|
||
|
- --namespace={{ istio_namespace }}
|
||
|
- -v=2
|
||
|
volumeMounts:
|
||
|
- name: config-volume
|
||
|
mountPath: /etc/istio/config
|
||
|
volumes:
|
||
|
- name: config-volume
|
||
|
configMap:
|
||
|
name: istio
|
||
|
---
|
||
|
apiVersion: admissionregistration.k8s.io/v1alpha1
|
||
|
kind: InitializerConfiguration
|
||
|
metadata:
|
||
|
name: istio-sidecar
|
||
|
initializers:
|
||
|
- name: sidecar.initializer.istio.io
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- "*"
|
||
|
apiVersions:
|
||
|
- "*"
|
||
|
resources:
|
||
|
- deployments
|
||
|
- statefulsets
|
||
|
- jobs
|
||
|
- daemonsets
|
||
|
---
|