-
Notifications
You must be signed in to change notification settings - Fork 16
Helm change #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yuchengao0721
wants to merge
2
commits into
taosdata:3.0
Choose a base branch
from
yuchengao0721:helm-change
base: 3.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Helm change #41
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,135 @@ | ||
| --- | ||
| #taos 配置文件 | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: {{ include "tdengine.fullname" . }}-taoscfg | ||
| labels: | ||
| {{- include "tdengine.labels" . | nindent 4 }} | ||
| name: {{ include "tdengine.fullname" . }}-taoscfg | ||
| data: | ||
| {{- with .Values.taoscfg }} | ||
| {{- toYaml . | nindent 2 }} | ||
| {{- end }} | ||
| taos.cfg: |- | ||
| monitor 1 // start monitor | ||
| monitorInterval 30 // send log interval (s) | ||
| monitorFqdn localhost | ||
| monitorPort 6043 // taosKeeper port | ||
| monitorMaxLogs 100 | ||
|
|
||
| keeper.toml: |- | ||
| # Start with debug middleware for gin | ||
| debug = false | ||
| # Listen port, default is 6043 | ||
| port = 6043 | ||
| # log level | ||
| loglevel = "info" | ||
| # go pool size | ||
| gopoolsize = 50000 | ||
| # interval for TDengine metrics | ||
| RotationInterval = "15s" | ||
| [tdengine] | ||
| host = "127.0.0.1" | ||
| port = 6041 | ||
| username = "root" | ||
| password = "taosdata" | ||
| # list of taosAdapter that need to be monitored | ||
| [taosAdapter] | ||
| address = ["127.0.0.1:6041"] | ||
| [metrics] | ||
| # metrics prefix in metrics names. | ||
| prefix = "taos" | ||
| # database for storing metrics data | ||
| database = "log" | ||
| # export some tables that are not super table | ||
| tables = [] | ||
| [environment] | ||
| # Whether running in cgroup. | ||
|
|
||
| taosadapter.toml: |- | ||
| debug = true | ||
| taosConfigDir = "" | ||
| port = 6041 | ||
| logLevel = "info" | ||
| [cors] | ||
| allowAllOrigins = true | ||
| #[pool] | ||
| #maxConnect = 0 | ||
| #maxIdle = 0 | ||
| #idleTimeout = 0 | ||
| [ssl] | ||
| enable = false | ||
| certFile = "" | ||
| keyFile = "" | ||
| [log] | ||
| #path = "/var/log/taos" | ||
| rotationCount = 30 | ||
| rotationTime = "24h" | ||
| rotationSize = "1GB" | ||
| enableRecordHttpSql = false | ||
| sqlRotationCount = 2 | ||
| sqlRotationTime = "24h" | ||
| sqlRotationSize = "1GB" | ||
| [monitor] | ||
| disable = false | ||
| collectDuration = "3s" | ||
| disableCollectClientIP = false | ||
| incgroup = false | ||
| pauseQueryMemoryThreshold = 70 | ||
| pauseAllMemoryThreshold = 80 | ||
| identity = "" | ||
| writeToTD = false | ||
| user = "root" | ||
| password = "taosdata" | ||
| writeInterval = "30s" | ||
| [opentsdb] | ||
| enable = true | ||
| [influxdb] | ||
| enable = true | ||
| [statsd] | ||
| enable = false | ||
| port = 6044 | ||
| db = "statsd" | ||
| user = "root" | ||
| password = "taosdata" | ||
| worker = 10 | ||
| gatherInterval = "5s" | ||
| protocol = "udp" | ||
| maxTCPConnections = 250 | ||
| tcpKeepAlive = false | ||
| allowPendingMessages = 50000 | ||
| deleteCounters = true | ||
| deleteGauges = true | ||
| deleteSets = true | ||
| deleteTimings = true | ||
| [collectd] | ||
| enable = false | ||
| port = 6045 | ||
| db = "collectd" | ||
| user = "root" | ||
| password = "taosdata" | ||
| worker = 10 | ||
| [opentsdb_telnet] | ||
| enable = false | ||
| maxTCPConnections = 250 | ||
| tcpKeepAlive = false | ||
| dbs = ["opentsdb_telnet", "collectd", "icinga2", "tcollector"] | ||
| ports = [6046, 6047, 6048, 6049] | ||
| user = "root" | ||
| password = "taosdata" | ||
| batchSize = 1 | ||
| flushInterval = "0s" | ||
| [node_exporter] | ||
| enable = false | ||
| db = "node_exporter" | ||
| user = "root" | ||
| password = "taosdata" | ||
| urls = ["http://localhost:9100"] | ||
| responseTimeout = "5s" | ||
| httpUsername = "" | ||
| httpPassword = "" | ||
| httpBearerTokenString = "" | ||
| caCertFile = "" | ||
| certFile = "" | ||
| keyFile = "" | ||
| insecureSkipVerify = true | ||
| gatherDuration = "5s" | ||
| [prometheus] | ||
| enable = true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,10 +74,10 @@ spec: | |
| - name: TAOS_FQDN | ||
| value: '$(POD_NAME).$(SERVICE_NAME).$(STS_NAMESPACE).svc.{{ .Values.clusterDomainSuffix | default "cluster.local" }}' | ||
|
|
||
| envFrom: | ||
| - configMapRef: | ||
| name: {{ include "tdengine.fullname" . }}-taoscfg | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use environment variables in |
||
| volumeMounts: | ||
| # this is config dir | ||
| - name: {{ include "tdengine.fullname" . }}-taoscfg | ||
| mountPath: /etc/taos | ||
| - name: {{ include "tdengine.fullname" . }}-taosdata | ||
| mountPath: /var/lib/taos | ||
| - name: {{ include "tdengine.fullname" . }}-taoslog | ||
|
|
@@ -114,6 +114,21 @@ spec: | |
| # readOnly: true # 仅允许只读模式挂载 | ||
| resources: | ||
| {{- toYaml .Values.resources | nindent 12 }} | ||
| volumes: | ||
| - name: {{ include "tdengine.fullname" . }}-taoscfg | ||
| configMap: | ||
| name: {{ include "tdengine.fullname" . }}-taoscfg | ||
| items: | ||
| - key: taos.cfg | ||
| path: taos.cfg | ||
| - key: keeper.toml | ||
| path: keeper.toml | ||
| - key: taosadapter.toml | ||
| path: taosadapter.toml | ||
| {{- with .Values.nodeSelector }} | ||
| nodeSelector: | ||
| {{- toYaml . | nindent 8 }} | ||
| {{- end }} | ||
| {{- with .Values.affinity }} | ||
| affinity: | ||
| {{- toYaml . | nindent 8 }} | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will use
taoskeeper.tomlinstead ofkeeper.toml