Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system-charts
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
system-charts
Commits
5a11a2fa
Commit
5a11a2fa
authored
Jan 11, 2020
by
Daishan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix kiali graph
parent
c8153ba4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
153 additions
and
0 deletions
+153
-0
deployment.yaml
...ancher-istio/1.4.2/charts/kiali/templates/deployment.yaml
+9
-0
kiali-console-configmap.yaml
...1.4.2/charts/kiali/templates/kiali-console-configmap.yaml
+14
-0
deployment.yaml
scripts/istio/deployment.yaml
+112
-0
kiali-console-configmap.yaml
scripts/istio/kiali-console-configmap.yaml
+14
-0
update-istio-release
scripts/update-istio-release
+4
-0
No files found.
charts/rancher-istio/1.4.2/charts/kiali/templates/deployment.yaml
View file @
5a11a2fa
...
...
@@ -71,6 +71,9 @@ spec:
mountPath
:
"
/kiali-cert"
-
name
:
kiali-secret
mountPath
:
"
/kiali-secret"
-
name
:
kiali-console
subPath
:
env.js
mountPath
:
/opt/kiali/console/env.js
resources
:
{{
- if .Values.resources
}}
{{
toYaml .Values.resources | indent 10
}}
...
...
@@ -78,6 +81,12 @@ spec:
{{
toYaml .Values.global.defaultResources | indent 10
}}
{{
- end
}}
volumes
:
-
name
:
kiali-console
configMap
:
name
:
kiali-console
items
:
-
key
:
env.js
path
:
env.js
-
name
:
kiali-configuration
configMap
:
name
:
kiali
...
...
charts/rancher-istio/1.4.2/charts/kiali/templates/kiali-console-configmap.yaml
0 → 100644
View file @
5a11a2fa
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
kiali-console
namespace
:
{{
.Release.Namespace
}}
labels
:
app
:
{{
template "kiali.name" .
}}
chart
:
{{
template "kiali.chart" .
}}
heritage
:
{{
.Release.Service
}}
release
:
{{
.Release.Name
}}
data
:
env.js
:
|
window.WEB_ROOT='/k8s/clusters/{{ .Values.global.rancher.clusterId }}/api/v1/namespaces/istio-system/services/http:kiali:20001/proxy';
\ No newline at end of file
scripts/istio/deployment.yaml
0 → 100755
View file @
5a11a2fa
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
kiali
namespace
:
{{
.Release.Namespace
}}
labels
:
app
:
{{
template "kiali.name" .
}}
chart
:
{{
template "kiali.chart" .
}}
heritage
:
{{
.Release.Service
}}
release
:
{{
.Release.Name
}}
spec
:
replicas
:
{{
.Values.replicaCount
}}
selector
:
matchLabels
:
app
:
kiali
template
:
metadata
:
name
:
kiali
labels
:
app
:
kiali
chart
:
{{
template "kiali.chart" .
}}
heritage
:
{{
.Release.Service
}}
release
:
{{
.Release.Name
}}
annotations
:
sidecar.istio.io/inject
:
"
false"
scheduler.alpha.kubernetes.io/critical-pod
:
"
"
prometheus.io/scrape
:
"
true"
prometheus.io/port
:
"
9090"
kiali.io/runtimes
:
go,kiali
{{
- if .Values.podAnnotations
}}
{{
toYaml .Values.podAnnotations | indent 8
}}
{{
- end
}}
spec
:
serviceAccountName
:
kiali-service-account
{{
- if .Values.global.priorityClassName
}}
priorityClassName
:
"
{{
.Values.global.priorityClassName
}}"
{{
- end
}}
containers
:
-
image
:
"
{{
.Values.hub
}}/{{
.Values.image
}}:{{
.Values.tag
}}"
imagePullPolicy
:
{{
.Values.global.imagePullPolicy
}}
name
:
kiali
command
:
-
"
/opt/kiali/kiali"
-
"
-config"
-
"
/kiali-configuration/config.yaml"
-
"
-v"
-
"
3"
readinessProbe
:
httpGet
:
path
:
{{
.Values.contextPath
}}
/healthz
port
:
20001
scheme
:
{{
if .Values.security.enabled
}}
'
HTTPS'
{{
else
}}
'
HTTP'
{{
end
}}
initialDelaySeconds
:
5
periodSeconds
:
30
livenessProbe
:
httpGet
:
path
:
{{
.Values.contextPath
}}
/healthz
port
:
20001
scheme
:
{{
if .Values.security.enabled
}}
'
HTTPS'
{{
else
}}
'
HTTP'
{{
end
}}
initialDelaySeconds
:
5
periodSeconds
:
30
env
:
-
name
:
ACTIVE_NAMESPACE
valueFrom
:
fieldRef
:
fieldPath
:
metadata.namespace
volumeMounts
:
-
name
:
kiali-configuration
mountPath
:
"
/kiali-configuration"
-
name
:
kiali-cert
mountPath
:
"
/kiali-cert"
-
name
:
kiali-secret
mountPath
:
"
/kiali-secret"
-
name
:
kiali-console
subPath
:
env.js
mountPath
:
/opt/kiali/console/env.js
resources
:
{{
- if .Values.resources
}}
{{
toYaml .Values.resources | indent 10
}}
{{
- else
}}
{{
toYaml .Values.global.defaultResources | indent 10
}}
{{
- end
}}
volumes
:
-
name
:
kiali-console
configMap
:
name
:
kiali-console
items
:
-
key
:
env.js
path
:
env.js
-
name
:
kiali-configuration
configMap
:
name
:
kiali
-
name
:
kiali-cert
secret
:
secretName
:
istio.kiali-service-account
{{
- if not .Values.security.enabled
}}
optional
:
true
{{
- end
}}
-
name
:
kiali-secret
secret
:
secretName
:
{{
.Values.dashboard.secretName
}}
optional
:
true
affinity
:
{{
- include "nodeaffinity" . | indent 6
}}
{{
- include "podAntiAffinity" . | indent 6
}}
{{
- if .Values.tolerations
}}
tolerations
:
{{
toYaml .Values.tolerations | indent 6
}}
{{
- else if .Values.global.defaultTolerations
}}
tolerations
:
{{
toYaml .Values.global.defaultTolerations | indent 6
}}
{{
- end
}}
scripts/istio/kiali-console-configmap.yaml
0 → 100644
View file @
5a11a2fa
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
kiali-console
namespace
:
{{
.Release.Namespace
}}
labels
:
app
:
{{
template "kiali.name" .
}}
chart
:
{{
template "kiali.chart" .
}}
heritage
:
{{
.Release.Service
}}
release
:
{{
.Release.Name
}}
data
:
env.js
:
|
window.WEB_ROOT='/k8s/clusters/{{ .Values.global.rancher.clusterId }}/api/v1/namespaces/istio-system/services/http:kiali:20001/proxy';
\ No newline at end of file
scripts/update-istio-release
View file @
5a11a2fa
...
...
@@ -55,6 +55,10 @@ EOF
# Replace the name of the chart
sed
-i
's/name: istio/name: rancher-istio/g'
charts/rancher-istio/
${
1
}
/Chart.yaml
# Update kiali
cp
./scripts/istio/deployment.yaml charts/rancher-istio/
${
1
}
/charts/kiali/templates/
cp
./scripts/istio/kiali-console-configmap.yaml charts/rancher-istio/
${
1
}
/charts/kiali/templates/
# Replace istio kubectl images
sed
-i
's/"{{ .Values.global.hub }}\/kubectl:{{ .Values.global.tag }}"/"{{ .Values.global.hub }}\/istio-kubectl:{{ .Values.global.tag }}"/g'
charts/rancher-istio/
${
1
}
/charts/security/templates/
*
.yaml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment