-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add managing config.ini file as part of chart #6
Merged
Conversation
This file contains 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
Changes in Final Manifest
manifest.yaml--- a/main/charts/trilium/build/manifest.yaml
+++ b/charts/trilium/build/manifest.yaml
@@ -1,4 +1,47 @@
---
+# Source: trilium/templates/config.yaml
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: trilium-config
+ labels:
+ app.kubernetes.io/instance: trilium
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: trilium
+ app.kubernetes.io/version: 0.90.4
+ helm.sh/chart: trilium-1.2.0
+data:
+ config.ini: |
+ [General]
+ # Instance name can be used to distinguish between different instances using backend api.getInstanceName()
+ instanceName=
+
+ # set to true to allow using Trilium without authentication (makes sense for server build only, desktop build doesn't need password)
+ noAuthentication=false
+
+ # set to true to disable backups (e.g. because of limited space on server)
+ noBackup=false
+
+ # Disable automatically generating desktop icon
+ # noDesktopIcon=true
+
+ [Network]
+ # host setting is relevant only for web deployments - set the host on which the server will listen
+ host=0.0.0.0
+ # port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)
+ port=8080
+ # true for TLS/SSL/HTTPS (secure), false for HTTP (unsecure).
+ https=false
+ # path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true
+ certPath=
+ keyPath=
+ # setting to give trust to reverse proxies, a comma-separated list of trusted rev. proxy IPs can be specified (CIDR notation is permitted),
+ # alternatively 'true' will make use of the leftmost IP in X-Forwarded-For, ultimately an integer can be used to tell about the number of hops between
+ # Trilium (which is hop 0) and the first trusted rev. proxy.
+ # once set, expressjs will use the X-Forwarded-For header set by the rev. proxy to determinate the real IPs of clients.
+ # expressjs shortcuts are supported: loopback(127.0.0.1/8, ::1/128), linklocal(169.254.0.0/16, fe80::/10), uniquelocal(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7)
+ trustedReverseProxy=true
+---
# Source: trilium/templates/release.yaml
apiVersion: v1
kind: Service
@@ -10,7 +53,7 @@ metadata:
app.kubernetes.io/name: trilium
app.kubernetes.io/service: trilium
app.kubernetes.io/version: 0.90.4
- helm.sh/chart: trilium-1.1.1
+ helm.sh/chart: trilium-1.2.0
spec:
type: ClusterIP
ports:
@@ -34,7 +77,7 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: trilium
app.kubernetes.io/version: 0.90.4
- helm.sh/chart: trilium-1.1.1
+ helm.sh/chart: trilium-1.2.0
spec:
revisionHistoryLimit: 3
replicas: 1
@@ -104,9 +147,15 @@ spec:
periodSeconds: 10
timeoutSeconds: 5
volumeMounts:
+ - mountPath: /home/node/trilium-data/config.ini
+ name: config
+ subPath: config.ini
- mountPath: /home/node/trilium-data
name: data
volumes:
+ - configMap:
+ name: trilium-config
+ name: config
- name: data
persistentVolumeClaim:
claimName: test-pvc
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.