mirror of https://git.rancher.io/charts
Merge pull request #531 from brendarearden/phase2
Istio Phase 2: Change namespace, add forceInstall flagpull/560/head
commit
6fee60c0a4
|
@ -1,8 +1,8 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: 1.6.7
|
appVersion: 1.6.8
|
||||||
description: Helm chart for installing istio components with the istioctl
|
description: Helm chart for installing istio components with the istioctl
|
||||||
name: rancher-istio-installer
|
name: rancher-istio
|
||||||
version: 1.6.700
|
version: 1.6.800
|
||||||
icon: https://charts.rancher.io/assets/logos/istio.svg
|
icon: https://charts.rancher.io/assets/logos/istio.svg
|
||||||
annotations:
|
annotations:
|
||||||
catalog.cattle.io/certified: rancher
|
catalog.cattle.io/certified: rancher
|
||||||
|
|
|
@ -4,16 +4,17 @@ A Rancher created chart that packages the istioctl binary to install via a helm
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
### pre-requisites
|
### Requirements
|
||||||
|
|
||||||
This chart depends on the rancher-kiali-server-crd chart.
|
This chart depends on the rancher-kiali-server-crd chart.
|
||||||
|
|
||||||
It also depends on rancher-monitoring being installed with default values for nameOverride, namespaceOverride, and the prometheus.service.port.
|
It also depends on the `rancher-monitoring` chart being installed with default values for `nameOverride`, `namespaceOverride`, and `prometheus.service.port`.
|
||||||
If those values are modified on the rancher-monitoring deployment, please adjust the `kiali.external_services.prometheus` url settings:
|
If those values are modified on the rancher-monitoring deployment, please adjust the `kiali.external_services.prometheus` url settings:
|
||||||
```
|
```
|
||||||
http://{{ .Values.nameOverride }}-prometheus.{{ .Values.namespaceOverride }}.svc:{{ prometheus.service.port }}
|
http://{{ .Values.nameOverride }}-prometheus.{{ .Values.namespaceOverride }}.svc:{{ prometheus.service.port }}
|
||||||
```
|
```
|
||||||
|
|
||||||
### installation
|
### Installation
|
||||||
|
```
|
||||||
helm install rancher-istio ./ --create-namespace -n cattle-istio-system
|
helm install rancher-istio ./ --create-namespace -n cattle-istio-system
|
||||||
|
```
|
||||||
|
|
|
@ -67,6 +67,7 @@ spec:
|
||||||
name: istio-ingressgateway
|
name: istio-ingressgateway
|
||||||
type: {{ .Values.ingressGateways.type }}
|
type: {{ .Values.ingressGateways.type }}
|
||||||
global:
|
global:
|
||||||
|
istioNamespace: {{ template "istio.namespace" . }}
|
||||||
proxy:
|
proxy:
|
||||||
image: {{ .Values.global.proxy.image }}
|
image: {{ .Values.global.proxy.image }}
|
||||||
proxy_init:
|
proxy_init:
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
apiVersion: install.istio.io/v1alpha1
|
||||||
|
kind: IstioOperator
|
||||||
|
spec:
|
||||||
|
components:
|
||||||
|
ingressGateways:
|
||||||
|
- enabled: true
|
||||||
|
name: ilb-gateway
|
||||||
|
namespace: user-ingressgateway-ns
|
||||||
|
k8s:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 200m
|
||||||
|
service:
|
||||||
|
ports:
|
||||||
|
- name: tcp-citadel-grpc-tls
|
||||||
|
port: 8060
|
||||||
|
targetPort: 8060
|
||||||
|
- name: tcp-dns
|
||||||
|
port: 5353
|
||||||
|
serviceAnnotations:
|
||||||
|
cloud.google.com/load-balancer-type: internal
|
||||||
|
- enabled: true
|
||||||
|
name: other-gateway
|
||||||
|
namespace: cattle-istio-system
|
||||||
|
k8s:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 200m
|
||||||
|
service:
|
||||||
|
ports:
|
||||||
|
- name: tcp-citadel-grpc-tls
|
||||||
|
port: 8060
|
||||||
|
targetPort: 8060
|
||||||
|
- name: tcp-dns
|
||||||
|
port: 5353
|
||||||
|
serviceAnnotations:
|
||||||
|
cloud.google.com/load-balancer-type: internal
|
|
@ -0,0 +1,4 @@
|
||||||
|
{{/* Ensure namespace is set the same everywhere */}}
|
||||||
|
{{- define "istio.namespace" -}}
|
||||||
|
{{- .Release.Namespace | default "istio-system" -}}
|
||||||
|
{{- end -}}
|
|
@ -4,8 +4,8 @@ kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
||||||
namespace: istio-system
|
|
||||||
name: istio-admin
|
name: istio-admin
|
||||||
|
namespace: {{ template "istio.namespace" . }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- config.istio.io
|
- config.istio.io
|
||||||
|
|
|
@ -2,6 +2,6 @@ apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: istio-installer-base
|
name: istio-installer-base
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
data:
|
data:
|
||||||
{{ tpl (.Files.Glob "configs/*").AsConfig . | indent 2 }}
|
{{ tpl (.Files.Glob "configs/*").AsConfig . | indent 2 }}
|
||||||
|
|
|
@ -5,7 +5,7 @@ metadata:
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: istio-installer
|
name: istio-installer
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: istio-installer
|
name: istio-installer
|
||||||
|
|
|
@ -4,7 +4,7 @@ kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
name: istio-edit
|
name: istio-edit
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
|
|
|
@ -2,13 +2,11 @@ apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: istioctl-installer
|
name: istioctl-installer
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": post-install,post-upgrade
|
"helm.sh/hook": post-install,post-upgrade
|
||||||
"helm.sh/hook-weight": "-5"
|
"helm.sh/hook-weight": "-5"
|
||||||
# Todo: use following line instead
|
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||||
# "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
|
||||||
"helm.sh/hook-delete-policy": before-hook-creation
|
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 1
|
backoffLimit: 1
|
||||||
template:
|
template:
|
||||||
|
@ -23,6 +21,10 @@ spec:
|
||||||
- name: CANARY_REVISION
|
- name: CANARY_REVISION
|
||||||
value: {{ .Values.revision }}
|
value: {{ .Values.revision }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
- name: ISTIO_NAMESPACE
|
||||||
|
value: {{ template "istio.namespace" . }}
|
||||||
|
- name: FORCE_INSTALL
|
||||||
|
value: {{ .Values.forceInstall | default "false" | quote }}
|
||||||
command: ["/bin/sh","-c"]
|
command: ["/bin/sh","-c"]
|
||||||
args: ["/usr/local/app/scripts/run.sh"]
|
args: ["/usr/local/app/scripts/run.sh"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: istioctl-uninstaller
|
name: istioctl-uninstaller
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": pre-delete
|
"helm.sh/hook": pre-delete
|
||||||
"helm.sh/hook-weight": "-5"
|
"helm.sh/hook-weight": "-5"
|
||||||
|
@ -16,6 +16,8 @@ spec:
|
||||||
env:
|
env:
|
||||||
- name: RELEASE_NAME
|
- name: RELEASE_NAME
|
||||||
value: {{ .Release.Name }}
|
value: {{ .Release.Name }}
|
||||||
|
- name: ISTIO_NAMESPACE
|
||||||
|
value: {{ template "istio.namespace" . }}
|
||||||
command: ["/bin/sh","-c"]
|
command: ["/bin/sh","-c"]
|
||||||
args: ["/usr/local/app/scripts/uninstall_istio_system.sh"]
|
args: ["/usr/local/app/scripts/uninstall_istio_system.sh"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
|
@ -3,7 +3,7 @@ apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: istio-installer-overlay
|
name: istio-installer-overlay
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
data:
|
data:
|
||||||
overlay-config.yaml: {{ toYaml .Values.overlayFile | indent 2 }}
|
overlay-config.yaml: {{ toYaml .Values.overlayFile | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: envoy-stats-monitor
|
name: envoy-stats-monitor
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
labels:
|
labels:
|
||||||
monitoring: istio-proxies
|
monitoring: istio-proxies
|
||||||
spec:
|
spec:
|
||||||
|
@ -34,7 +34,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: istio-component-monitor
|
name: istio-component-monitor
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
labels:
|
labels:
|
||||||
monitoring: istio-components
|
monitoring: istio-components
|
||||||
spec:
|
spec:
|
||||||
|
|
|
@ -2,4 +2,4 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: istio-installer
|
name: istio-installer
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
|
|
|
@ -4,7 +4,7 @@ kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
||||||
namespace: istio-system
|
namespace: {{ template "istio.namespace" . }}
|
||||||
name: istio-view
|
name: istio-view
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
revision: "" # leave blank for no canary deployment, or set to given revision, eg: "1-7-2"
|
revision: "" # leave blank for no canary deployment, or set to given revision, eg: "1-7-2"
|
||||||
overlayFile: ""
|
overlayFile: ""
|
||||||
tag: 1.6.7
|
tag: 1.6.8
|
||||||
installerVersion: 0.1.5
|
installerVersion: 0.1.6
|
||||||
|
forceInstall: false
|
||||||
|
|
||||||
istiocoredns:
|
istiocoredns:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
Loading…
Reference in New Issue