Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
skywalking-kubernetes
提交
ddb4f06f
S
skywalking-kubernetes
项目概览
apache
/
skywalking-kubernetes
通知
21
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skywalking-kubernetes
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ddb4f06f
编写于
12月 10, 2019
作者:
I
innerpeacez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
two ways to deploy sw
上级
d2c837bd
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
51 addition
and
7 deletion
+51
-7
chart/skywalking/templates/_helpers.tpl
chart/skywalking/templates/_helpers.tpl
+4
-0
chart/skywalking/templates/es-init.job.yaml
chart/skywalking/templates/es-init.job.yaml
+1
-1
chart/skywalking/templates/oap-deployment.yaml
chart/skywalking/templates/oap-deployment.yaml
+4
-0
chart/skywalking/values.yaml
chart/skywalking/values.yaml
+6
-6
docs/how-to-deploy.md
docs/how-to-deploy.md
+36
-0
未找到文件。
chart/skywalking/templates/_helpers.tpl
浏览文件 @
ddb4f06f
...
...
@@ -74,5 +74,9 @@ Create the name of the service account to use for the oap cluster
- name: wait-for-elasticsearch
image: busybox:1.30
imagePullPolicy: IfNotPresent
{{- if .Values.elasticsearch.enabled }}
command: ['sh', '-c', 'for i in $(seq 1 60); do nc -z -w3 {{ include "call-nested" (list . "elasticsearch" "elasticsearch.client.fullname") }} 9200
&&
exit 0 || sleep 5; done; exit 1']
{{- else }}
command: ['sh', '-c', 'for i in $(seq 1 60); do nc -z -w3 {{ .Values.elasticsearch.config.host }} {{ .Values.elasticsearch.config.port.http }}
&&
exit 0 || sleep 5; done; exit 1']
{{- end }}
{{- end -}}
chart/skywalking/templates/es-init.job.yaml
浏览文件 @
ddb4f06f
...
...
@@ -50,7 +50,7 @@ spec:
-
name
:
SW_STORAGE
value
:
elasticsearch
-
name
:
SW_STORAGE_ES_CLUSTER_NODES
{{
- if.Values.elasticsearch.enabled
}}
{{
- if
.Values.elasticsearch.enabled
}}
value
:
"
{{
include
"call-nested" (list . "elasticsearch" "elasticsearch.client.fullname") }}:9200"
{{
- else
}}
value
:
"
{{
.Values.elasticsearch.config.host
}}:{{
.Values.elasticsearch.config.port.http
}}"
...
...
chart/skywalking/templates/oap-deployment.yaml
浏览文件 @
ddb4f06f
...
...
@@ -111,7 +111,11 @@ spec:
value
:
{{
.Values.oap.envoy.als.enabled | quote
}}
{{
- end
}}
-
name
:
SW_STORAGE_ES_CLUSTER_NODES
{{
- if .Values.elasticsearch.enabled
}}
value
:
"
{{
include
"call-nested" (list . "elasticsearch" "elasticsearch.client.fullname") }}:9200"
{{
- else
}}
value
:
"
{{
.Values.elasticsearch.config.host
}}:{{
.Values.elasticsearch.config.port.http
}}"
{{
- end
}}
{{
- range $key
,
$value
:
= .Values.oap.env
}}
-
name
:
{{
$key
}}
value
:
{{
$value | quote
}}
...
...
chart/skywalking/values.yaml
浏览文件 @
ddb4f06f
...
...
@@ -102,10 +102,10 @@ elasticsearch:
enabled
:
true
# If elasticsearch.enabled=true values for elasticsearch.
# or elasticsearch.enabled=false, Will not deploy ES pod. The following config options must be configured
config
:
port
:
http
:
9200
host
:
elasticsearch
# es service on kubernetes or host
#
config:
#
port:
#
http: 9200
#
host: elasticsearch # es service on kubernetes or host
## Define serviceAccount names for components. Defaults to component's fully qualified name.
serviceAccounts
:
...
...
@@ -180,7 +180,7 @@ elasticsearch:
heapSize
:
"
512m"
# additionalJavaOpts: "-XX:MaxRAM=512m"
persistence
:
enabled
:
tru
e
enabled
:
fals
e
accessMode
:
ReadWriteOnce
name
:
data
size
:
"
4Gi"
...
...
@@ -227,7 +227,7 @@ elasticsearch:
heapSize
:
"
1536m"
# additionalJavaOpts: "-XX:MaxRAM=1536m"
persistence
:
enabled
:
tru
e
enabled
:
fals
e
accessMode
:
ReadWriteOnce
name
:
data
size
:
"
30Gi"
...
...
docs/how-to-deploy.md
0 → 100644
浏览文件 @
ddb4f06f
### How to use the SkyWalking Chart?
Two ways:
-
deploy SkyWalking and Elasticsearch (default)
-
only deploy SkyWalking ,and use existing Elasticsearch
#### Deploy SkyWalking and Elasticsearch (default)
```
shell script
$ cd chart
$ helm add stable https://kubernetes-charts.storage.googleapis.com/
$ helm dep up
$ helm install <release_name> skywalking -n <namespace>
```
#### Only deploy SkyWalking ,and use existing Elasticsearch
If not want to deploy a new elasticsearch cluster, this way can be solved.
Only need to close the elasticsearch deployed by chart default and configure the existing elasticsearch connection method.
```
shell script
$ cd chart
$ helm add stable https://kubernetes-charts.storage.googleapis.com/
$ helm dep up
$ helm install <release_name> skywalking -n <namespace> \
--set elasticsearch.enabled=false \
--set elasticsearch.config.host=<es_host> \
--set elasticsearch.config.port.http=<es_port>
```
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录