You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.2 KiB

  1. # GENERATED FILE. Use with Kubernetes 1.7+
  2. # TO UPDATE, modify files in install/kubernetes/templates and run install/updateVersion.sh
  3. ################################
  4. # Istio initializer
  5. ################################
  6. apiVersion: v1
  7. kind: ConfigMap
  8. metadata:
  9. name: istio-inject
  10. namespace: {{ istio_namespace }}
  11. data:
  12. config: |-
  13. policy: "enabled"
  14. namespaces: [""] # everything, aka v1.NamepsaceAll, aka cluster-wide
  15. initializerName: "sidecar.initializer.istio.io"
  16. params:
  17. initImage: {{ istio_proxy_init_image_repo }}:{{ istio_proxy_init_image_tag }}
  18. proxyImage: {{ istio_proxy_image_repo }}:{{ istio_proxy_image_tag }}
  19. verbosity: 2
  20. version: 0.2.6
  21. meshConfigMapName: istio
  22. imagePullPolicy: IfNotPresent
  23. ---
  24. apiVersion: v1
  25. kind: ServiceAccount
  26. metadata:
  27. name: istio-initializer-service-account
  28. namespace: {{ istio_namespace }}
  29. ---
  30. apiVersion: apps/v1beta1
  31. kind: Deployment
  32. metadata:
  33. name: istio-initializer
  34. namespace: {{ istio_namespace }}
  35. annotations:
  36. sidecar.istio.io/inject: "false"
  37. initializers:
  38. pending: []
  39. labels:
  40. istio: istio-initializer
  41. spec:
  42. replicas: 1
  43. template:
  44. metadata:
  45. name: istio-initializer
  46. labels:
  47. istio: initializer
  48. annotations:
  49. sidecar.istio.io/inject: "false"
  50. spec:
  51. serviceAccountName: istio-initializer-service-account
  52. containers:
  53. - name: initializer
  54. image: {{ istio_sidecar_initializer_image_repo }}:{{ istio_sidecar_initializer_image_tag }}
  55. imagePullPolicy: IfNotPresent
  56. args:
  57. - --port=8083
  58. - --namespace={{ istio_namespace }}
  59. - -v=2
  60. volumeMounts:
  61. - name: config-volume
  62. mountPath: /etc/istio/config
  63. volumes:
  64. - name: config-volume
  65. configMap:
  66. name: istio
  67. ---
  68. apiVersion: admissionregistration.k8s.io/v1alpha1
  69. kind: InitializerConfiguration
  70. metadata:
  71. name: istio-sidecar
  72. initializers:
  73. - name: sidecar.initializer.istio.io
  74. rules:
  75. - apiGroups:
  76. - "*"
  77. apiVersions:
  78. - "*"
  79. resources:
  80. - deployments
  81. - statefulsets
  82. - jobs
  83. - daemonsets
  84. ---