Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
influxdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
influxdb
Commits
b849d424
Commit
b849d424
authored
Jun 18, 2020
by
David McKay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: support license key file
parent
ba3ef201
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
17 deletions
+28
-17
data-configmap.yaml
charts/influxdb-enterprise/templates/data-configmap.yaml
+3
-12
data-statefulset.yaml
charts/influxdb-enterprise/templates/data-statefulset.yaml
+10
-0
meta-configmap.yaml
charts/influxdb-enterprise/templates/meta-configmap.yaml
+1
-1
meta-statefulset.yaml
charts/influxdb-enterprise/templates/meta-statefulset.yaml
+10
-0
values.yaml
charts/influxdb-enterprise/values.yaml
+4
-4
No files found.
charts/influxdb-enterprise/templates/data-configmap.yaml
View file @
b849d424
...
...
@@ -16,7 +16,7 @@ data:
license-key = "{{ .Values.license.key }}" #✨ mutually exclusive with license-path
{{ else }}
# license-key and license-path are mutually exclusive, use only one and leave the other blank
license-path = "/
etc
/influxdb/license.json"
license-path = "/
var/run/secrets
/influxdb/license.json"
{{ end }}
[meta]
...
...
@@ -51,19 +51,12 @@ data:
my $protocol = $ENV{HTTP_PROTOCOL};
my $meta_service = $ENV{RELEASE_NAME} . "-meta";
# First time preparing to register with a meta node.
# There's a delay waiting on this pods DNS to be resolvable, and
# it looks like the /add-data endpoint returns a 200 even when that
# lookup fails.
# So slipping in this sleep for the time being
# sleep(15);
# We're not going to define an exit strategy for failure here.
# This should be handled by the probes on the pods
while (true) {
# There's no LWP/Simple available in our images, so forking out to curl 😥
print "\n\n\nREGISTER WITH META SERVICE\n\n\n";
$exit_code = system('curl', '-
H', 'Expect:', '-XPOST', '-v', '--silent', '--fail
', "-Faddr=$ENV{INFLUXDB_HOSTNAME}:8088", "$protocol://$meta_service:8091/add-data");
$exit_code = system('curl', '-
XPOST', '-v', '--silent', '--fail', '--retry', '5', '--retry-delay', '0
', "-Faddr=$ENV{INFLUXDB_HOSTNAME}:8088", "$protocol://$meta_service:8091/add-data");
if ($exit_code == 0) {
...
...
@@ -73,9 +66,7 @@ data:
print "\n\n\nFailed: $!\n\n\n";
$| = 1;
# Wait a few seconds and try again
# Maybe we should implement some rudamentary backoff
sleep(2);
exit 255
}
waitpid($pid, 0);
...
...
charts/influxdb-enterprise/templates/data-statefulset.yaml
View file @
b849d424
...
...
@@ -32,6 +32,11 @@ spec:
-
name
:
config
configMap
:
name
:
{{
include "influxdb-enterprise.fullname" .
}}
-data
{{
- if .Values.license.secret
}}
-
name
:
license
secret
:
secretName
:
{{
.Values.license.secret.name
}}
{{
- end
}}
containers
:
-
name
:
{{
.Chart.Name
}}
command
:
...
...
@@ -68,6 +73,11 @@ spec:
mountPath
:
/etc/influxdb
-
name
:
{{
include "influxdb-enterprise.fullname" .
}}
-data-data
mountPath
:
/var/lib/influxdb
{{
- if .Values.license.secret
}}
-
name
:
license
mountPath
:
/var/run/secrets/influxdb/license.json
subPath
:
json
{{
- end
}}
resources
:
{{
- toYaml .Values.data.resources | nindent 12
}}
{{
- with .Values.data.nodeSelector
}}
...
...
charts/influxdb-enterprise/templates/meta-configmap.yaml
View file @
b849d424
...
...
@@ -16,7 +16,7 @@ data:
license-key = "{{ .Values.license.key }}" #✨ mutually exclusive with license-path
{{ else }}
# license-key and license-path are mutually exclusive, use only one and leave the other blank
license-path = "/
etc
/influxdb/license.json"
license-path = "/
var/run/secrets
/influxdb/license.json"
{{ end }}
[meta]
...
...
charts/influxdb-enterprise/templates/meta-statefulset.yaml
View file @
b849d424
...
...
@@ -34,6 +34,11 @@ spec:
-
name
:
config
configMap
:
name
:
{{
include "influxdb-enterprise.fullname" .
}}
-meta
{{
- if .Values.license.secret
}}
-
name
:
license
secret
:
secretName
:
{{
.Values.license.secret.name
}}
{{
- end
}}
containers
:
-
name
:
{{
.Chart.Name
}}
command
:
...
...
@@ -64,6 +69,11 @@ spec:
mountPath
:
/etc/influxdb
-
name
:
{{
include "influxdb-enterprise.fullname" .
}}
-meta-data
mountPath
:
/var/lib/influxdb
{{
- if .Values.license.secret
}}
-
name
:
license
mountPath
:
/var/run/secrets/influxdb/license.json
subPath
:
json
{{
- end
}}
resources
:
{{
- toYaml .Values.meta.resources | nindent 12
}}
{{
- with .Values.meta.nodeSelector
}}
...
...
charts/influxdb-enterprise/values.yaml
View file @
b849d424
...
...
@@ -6,14 +6,14 @@ nameOverride: ""
fullnameOverride
:
"
"
imagePullSecrets
:
[]
license
:
license
:
{}
# You can put your license key here for testing this chart out,
# but we STRONGLY recommend using a license file stored in a secret
# when you ship to production.
key
:
"
"
#key: "your license key
"
#secret:
#name: secretNam
e
#key: fieldKey
# name: licens
e
# key: json
meta
:
replicas
:
3
...
...
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