diff --git a/build.d/console.d/Dockerfile b/build.d/console.d/Dockerfile index 40e71e2..ce34bc6 100644 --- a/build.d/console.d/Dockerfile +++ b/build.d/console.d/Dockerfile @@ -3,7 +3,7 @@ FROM alpine:latest RUN apk update && \ apk upgrade && \ - apk add --no-cache bind-tools curl libmemcached mariadb-client net-snmp-tools redis rrdtool wget + apk add --no-cache bash bind-tools curl libmemcached mariadb-client net-snmp-tools redis rrdtool wget COPY commands / COPY environment.sh /.profile diff --git a/build.d/device.d/Dockerfile b/build.d/device.d/v2c/Dockerfile similarity index 93% rename from build.d/device.d/Dockerfile rename to build.d/device.d/v2c/Dockerfile index 19986bd..b7861cd 100644 --- a/build.d/device.d/Dockerfile +++ b/build.d/device.d/v2c/Dockerfile @@ -8,8 +8,7 @@ RUN apk update && \ COPY snmpd.conf.template . #RUN COMMUNITY=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16) envsubst < snmpd.conf.template > /tmp/snmpd.conf && \ - -RUN COMMUNITY=librenmsdevice envsubst < snmpd.conf.template > /tmp/snmpd.conf && \ +RUN COMMUNITY=librenmsDevice envsubst < snmpd.conf.template > /tmp/snmpd.conf && \ curl -o /tmp/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro #=============================================================================== diff --git a/build.d/device.d/build.sh b/build.d/device.d/v2c/build.sh similarity index 58% rename from build.d/device.d/build.sh rename to build.d/device.d/v2c/build.sh index e8506ea..597a50b 100755 --- a/build.d/device.d/build.sh +++ b/build.d/device.d/v2c/build.sh @@ -1,6 +1,4 @@ #!/bin/bash -#docker build -t tpboudreau/librenms-device . - docker build -t tpboudreau/librenms-device-v2c:0.1 . diff --git a/build.d/device.d/snmpd.conf.template b/build.d/device.d/v2c/snmpd.conf.template similarity index 100% rename from build.d/device.d/snmpd.conf.template rename to build.d/device.d/v2c/snmpd.conf.template diff --git a/build.d/device.d/v3/snmpd.conf b/build.d/device.d/v3/snmpd.conf index 6c82f9c..56fafce 100644 --- a/build.d/device.d/v3/snmpd.conf +++ b/build.d/device.d/v3/snmpd.conf @@ -29,10 +29,10 @@ agentAddress udp:161 # Then restart the agent # createUser authOnlyUser MD5 "remember to change this password" -createUser librenmsAP SHA "authpassword" DES "privpassword" -createUser librenmsAnP SHA "authpassword" +createUser librenmsAP SHA "authPassword" DES "privPassword" +createUser librenmsAnP SHA "authPassword" createUser librenmsnAnP -createUser internalUser MD5 "internalpassword" +createUser internalUser MD5 "internalPassword" # If you also change the usernames (which might be sensible), # then remember to update the other occurances in this example config file to match. diff --git a/release.d/install.txt b/release.d/install.txt new file mode 100644 index 0000000..5e0a1e8 --- /dev/null +++ b/release.d/install.txt @@ -0,0 +1,89 @@ + +For temporary databases: + +kubectl create namespace librenms-temporary + +helm install \ + --generate-name \ + --values values.yaml \ + --namespace librenms-temporary \ + --set librenmsServices.mysql.storage.type=temporary \ + --set librenmsServices.rrdcached.storage.type=temporary \ + --set librenmsServices.redis.storage.type=temporary \ + librenms + +helm list --namespace librenms-temporary + +... + +helm uninstall librenms-$RELEASE_ID --namespace librenms-temporary + +kubectl delete namespace librenms-temporary + +---------------------------------------------------------------------------------------------------------------- + +For databases backed by pre-configured persistent volume claims (the default): + +kubectl create namespace librenms + +helm install \ + --generate-name \ + --values values.yaml \ + --namespace librenms \ + --set librenmsServices.mysql.storage.claimName=$MYSQL_PVC_NAME \ + --set librenmsServices.rrdcached.storage.claimName=$RRDCACHED_PVC_NAME \ + --set librenmsServices.redis.storage.claimName=$REDIS_PVC_NAME \ + librenms + +helm list --namespace librenms + +... + +helm uninstall $GENERATED_NAME --namespace librenms + +kubectl delete namespace librenms + +---------------------------------------------------------------------------------------------------------------- + +For databases running outside the Kubernetes cluster ... + +kubectl create namespace librenms + +helm install \ + --generate-name \ + --values values.yaml \ + --namespace librenms \ + --set librenmsServices.mysql.external.enabled=true,librenmsServices.mysql.external.address=$MYSQL_IP_ADDRESS,librenmsServices.mysql.external.port=$MYSQL_PORT \ + --set librenmsServices.rrdcached.external.enabled=true,librenmsServices.rrdcached.external.address=$RRDCACHED_IP_ADDRESS,librenmsServices.rrdcached.external.port=$RRDCACHED_PORT \ + --dry-run \ + librenms + +helm list --namespace librenms + +... + +helm uninstall $GENERATED_NAME --namespace librenms + +kubectl delete namespace librenms + +---------------------------------------------------------------------------------------------------------------- + +For running the application in a Kubernetes cluster that forbids setuid / set-cap binaries ... + +kubectl create namespace librenms + +helm install \ + --generate-name \ + --values values.yaml \ + --namespace librenms \ + --set snmpPing.enabled=true \ + librenms + +helm list --namespace librenms + +... + +helm uninstall $GENERATED_NAME --namespace librenms + +kubectl delete namespace librenms + diff --git a/release.d/librenms-test-console/templates/test-console.yaml b/release.d/librenms-test-console/templates/test-console.yaml index 712b8f1..976d8a4 100644 --- a/release.d/librenms-test-console/templates/test-console.yaml +++ b/release.d/librenms-test-console/templates/test-console.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Pod metadata: - namespace: {{ .Values.Namespace }} + namespace: {{ .Release.Namespace }} name: test-console labels: application: librenms diff --git a/release.d/librenms-test-console/values.yaml b/release.d/librenms-test-console/values.yaml index 101e33d..a91d47d 100644 --- a/release.d/librenms-test-console/values.yaml +++ b/release.d/librenms-test-console/values.yaml @@ -1,6 +1,4 @@ -Namespace: "librenms" - image: repository: "docker.io/tpboudreau/librenms-console" tag: "0.1" diff --git a/release.d/librenms-test-device/templates/test-device.yaml b/release.d/librenms-test-device/templates/test-device.yaml index 3746d2f..f4557fc 100644 --- a/release.d/librenms-test-device/templates/test-device.yaml +++ b/release.d/librenms-test-device/templates/test-device.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: - namespace: {{ $.Values.Namespace }} + namespace: {{ $.Release.Namespace }} name: {{ .DeviceName }} spec: clusterIP: None @@ -21,7 +21,7 @@ spec: apiVersion: v1 kind: Pod metadata: - namespace: {{ $.Values.Namespace }} + namespace: {{ $.Release.Namespace }} name: {{ .DeviceName }} labels: application: librenms diff --git a/release.d/librenms-test-device/values.yaml b/release.d/librenms-test-device/values.yaml index 69e36de..f9dbe46 100644 --- a/release.d/librenms-test-device/values.yaml +++ b/release.d/librenms-test-device/values.yaml @@ -1,6 +1,4 @@ -Namespace: "librenms" - image: repositoryRoot: "docker.io/tpboudreau/librenms-device" tag: "0.1" @@ -10,16 +8,16 @@ Devices: SNMPVersion: "v2c" - DeviceName: "test-device-one" SNMPVersion: "v2c" -#- DeviceName: "test-device-two" -# SNMPVersion: "v2c" -#- DeviceName: "test-device-three" -# SNMPVersion: "v2c" +- DeviceName: "test-device-two" + SNMPVersion: "v2c" +- DeviceName: "test-device-three" + SNMPVersion: "v2c" - DeviceName: "test-device-alpha" SNMPVersion: "v3" - DeviceName: "test-device-beta" SNMPVersion: "v3" -#- DeviceName: "test-device-gamma" -# SNMPVersion: "v3" -#- DeviceName: "test-device-delta" -# SNMPVersion: "v3" +- DeviceName: "test-device-gamma" + SNMPVersion: "v3" +- DeviceName: "test-device-delta" + SNMPVersion: "v3" diff --git a/release.d/librenms/charts/librenms-services/.helmignore b/release.d/librenms/charts/librenmsServices/.helmignore similarity index 100% rename from release.d/librenms/charts/librenms-services/.helmignore rename to release.d/librenms/charts/librenmsServices/.helmignore diff --git a/release.d/librenms/charts/librenms-services/Chart.yaml b/release.d/librenms/charts/librenmsServices/Chart.yaml similarity index 81% rename from release.d/librenms/charts/librenms-services/Chart.yaml rename to release.d/librenms/charts/librenmsServices/Chart.yaml index 2893c59..1e61d75 100644 --- a/release.d/librenms/charts/librenms-services/Chart.yaml +++ b/release.d/librenms/charts/librenmsServices/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -name: librenms-services +name: librenmsServices description: LibreNMS supporting services type: application version: 0.1.0 diff --git a/release.d/librenms/charts/librenms-services/templates/NOTES.txt b/release.d/librenms/charts/librenmsServices/templates/NOTES.txt similarity index 100% rename from release.d/librenms/charts/librenms-services/templates/NOTES.txt rename to release.d/librenms/charts/librenmsServices/templates/NOTES.txt diff --git a/release.d/librenms/charts/librenms-services/templates/_helpers.tpl b/release.d/librenms/charts/librenmsServices/templates/_helpers.tpl similarity index 72% rename from release.d/librenms/charts/librenms-services/templates/_helpers.tpl rename to release.d/librenms/charts/librenmsServices/templates/_helpers.tpl index c8ffe60..31beabe 100644 --- a/release.d/librenms/charts/librenms-services/templates/_helpers.tpl +++ b/release.d/librenms/charts/librenmsServices/templates/_helpers.tpl @@ -2,7 +2,7 @@ {{/* Expand the name of the chart. */}} -{{- define "librenms-services.name" -}} +{{- define "librenmsServices.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} {{- end -}} @@ -11,7 +11,7 @@ Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). If release name contains chart name it will be used as a full name. */}} -{{- define "librenms-services.fullname" -}} +{{- define "librenmsServices.fullname" -}} {{- if .Values.fullnameOverride -}} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} {{- else -}} @@ -27,16 +27,16 @@ If release name contains chart name it will be used as a full name. {{/* Create chart name and version as used by the chart label. */}} -{{- define "librenms-services.chart" -}} +{{- define "librenmsServices.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end -}} {{/* Common labels */}} -{{- define "librenms-services.labels" -}} -helm.sh/chart: {{ include "librenms-services.chart" . }} -{{ include "librenms-services.selectorLabels" . }} +{{- define "librenmsServices.labels" -}} +helm.sh/chart: {{ include "librenmsServices.chart" . }} +{{ include "librenmsServices.selectorLabels" . }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} @@ -46,17 +46,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} {{/* Selector labels */}} -{{- define "librenms-services.selectorLabels" -}} -app.kubernetes.io/name: {{ include "librenms-services.name" . }} +{{- define "librenmsServices.selectorLabels" -}} +app.kubernetes.io/name: {{ include "librenmsServices.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end -}} {{/* Create the name of the service account to use */}} -{{- define "librenms-services.serviceAccountName" -}} +{{- define "librenmsServices.serviceAccountName" -}} {{- if .Values.serviceAccount.create -}} - {{ default (include "librenms-services.fullname" .) .Values.serviceAccount.name }} + {{ default (include "librenmsServices.fullname" .) .Values.serviceAccount.name }} {{- else -}} {{ default "default" .Values.serviceAccount.name }} {{- end -}} diff --git a/release.d/librenms/charts/librenms-services/templates/configmaps.yaml b/release.d/librenms/charts/librenmsServices/templates/configmaps.yaml similarity index 100% rename from release.d/librenms/charts/librenms-services/templates/configmaps.yaml rename to release.d/librenms/charts/librenmsServices/templates/configmaps.yaml diff --git a/release.d/librenms/charts/librenms-services/templates/memcached.yaml b/release.d/librenms/charts/librenmsServices/templates/memcached.yaml similarity index 100% rename from release.d/librenms/charts/librenms-services/templates/memcached.yaml rename to release.d/librenms/charts/librenmsServices/templates/memcached.yaml diff --git a/release.d/librenms/charts/librenms-services/templates/mysql-ephemeral.yaml b/release.d/librenms/charts/librenmsServices/templates/mysql.yaml similarity index 86% rename from release.d/librenms/charts/librenms-services/templates/mysql-ephemeral.yaml rename to release.d/librenms/charts/librenmsServices/templates/mysql.yaml index ef1ba9e..f60cc4c 100644 --- a/release.d/librenms/charts/librenms-services/templates/mysql-ephemeral.yaml +++ b/release.d/librenms/charts/librenmsServices/templates/mysql.yaml @@ -31,7 +31,7 @@ metadata: name: mysql subsets: - addresses: - - ip: {{ required "the external MySQL database address must be provided (mysql.external.address)" .Values.mysql.external.address }} + - ip: {{ required "the external MySQL database address must be provided (librenmsServices.mysql.external.address)" .Values.mysql.external.address }} ports: - name: mysql port: {{ .Values.mysql.external.port }} @@ -110,6 +110,11 @@ spec: containerPort: {{ .Values.mysql.providerPort }} protocol: TCP volumes: - - name: mysql-volume - emptyDir: {} + - name: mysql-volume + {{- if eq .Values.mysql.storage.type "temporary" }} + emptyDir: {} + {{- else }} + persistentVolumeClaim: + claimName: {{ required "the name of the pre-configured MySQL persistent volume claim must be provided (librenmsServices.mysql.storage.claimName)" .Values.mysql.storage.claimName }} + {{- end }} {{- end }} diff --git a/release.d/librenms/charts/librenms-services/templates/prepare-database.yaml b/release.d/librenms/charts/librenmsServices/templates/prepare-database.yaml similarity index 98% rename from release.d/librenms/charts/librenms-services/templates/prepare-database.yaml rename to release.d/librenms/charts/librenmsServices/templates/prepare-database.yaml index ea77e3a..99f32ae 100644 --- a/release.d/librenms/charts/librenms-services/templates/prepare-database.yaml +++ b/release.d/librenms/charts/librenmsServices/templates/prepare-database.yaml @@ -25,7 +25,7 @@ spec: containers: - name: prepare-database image: {{ .Values.mysql.prepareDatabaseImage.repository }}:{{ .Values.mysql.prepareDatabaseImage.tag }} - imagePullPolicy: Always + imagePullPolicy: IfNotPresent envFrom: - configMapRef: name: application diff --git a/release.d/librenms/charts/librenms-services/templates/redis-ephemeral.yaml b/release.d/librenms/charts/librenmsServices/templates/redis.yaml similarity index 79% rename from release.d/librenms/charts/librenms-services/templates/redis-ephemeral.yaml rename to release.d/librenms/charts/librenmsServices/templates/redis.yaml index 92b7fbe..22fda9c 100644 --- a/release.d/librenms/charts/librenms-services/templates/redis-ephemeral.yaml +++ b/release.d/librenms/charts/librenmsServices/templates/redis.yaml @@ -55,4 +55,9 @@ spec: protocol: TCP volumes: - name: redis-volume + {{- if eq .Values.redis.storage.type "temporary" }} emptyDir: {} + {{- else }} + persistentVolumeClaim: + claimName: {{ required "the name of the pre-configured Redis persistent volume claim must be provided (librenmsServices.redis.storage.claimName)" .Values.redis.storage.claimName }} + {{- end }} diff --git a/release.d/librenms/charts/librenms-services/templates/rrdcached-ephemeral.yaml b/release.d/librenms/charts/librenmsServices/templates/rrdcached.yaml similarity index 78% rename from release.d/librenms/charts/librenms-services/templates/rrdcached-ephemeral.yaml rename to release.d/librenms/charts/librenmsServices/templates/rrdcached.yaml index ed55648..0cad6a6 100644 --- a/release.d/librenms/charts/librenms-services/templates/rrdcached-ephemeral.yaml +++ b/release.d/librenms/charts/librenmsServices/templates/rrdcached.yaml @@ -31,7 +31,7 @@ metadata: name: rrdcached subsets: - addresses: - - ip: {{ required "the external rrdcached server address must be provided (rrdcached.external.address)" .Values.rrdcached.external.address }} + - ip: {{ required "the external RRDCached server address must be provided (librenmsServices.rrdcached.external.address)" .Values.rrdcached.external.address }} ports: - name: rrdcached port: {{ .Values.rrdcached.external.port }} @@ -76,5 +76,10 @@ spec: protocol: TCP volumes: - name: rrdcached-volume + {{- if eq .Values.rrdcached.storage.type "temporary" }} emptyDir: {} + {{- else }} + persistentVolumeClaim: + claimName: {{ required "the name of the pre-configured RRDCached persistent volume claim must be provided (librenmsServices.rrdcached.storage.claimName)" .Values.rrdcached.storage.claimName }} + {{- end }} {{- end }} diff --git a/release.d/librenms/charts/librenms-services/values.yaml b/release.d/librenms/charts/librenmsServices/values.yaml similarity index 89% rename from release.d/librenms/charts/librenms-services/values.yaml rename to release.d/librenms/charts/librenmsServices/values.yaml index c61b35c..d6ac74c 100644 --- a/release.d/librenms/charts/librenms-services/values.yaml +++ b/release.d/librenms/charts/librenmsServices/values.yaml @@ -12,9 +12,11 @@ mysql: prepareDatabaseImage: repository: "docker.io/tpboudreau/librenms-prepare-mysql" tag: "0.1" + storage: + type: persistent external: enabled: false - #address: "12.34.56.78" + address: port: 3306 rrdcached: @@ -29,9 +31,11 @@ rrdcached: image: repository: "docker.io/tpboudreau/librenms-rrdcached" tag: "0.1" + storage: + type: persistent external: enabled: false - #address: "12.34.56.78" + address: port: 42217 memcached: @@ -51,4 +55,6 @@ redis: image: repository: "docker.io/tpboudreau/librenms-redis" tag: "0.1" + storage: + type: persistent diff --git a/release.d/librenms/templates/_checks.yaml b/release.d/librenms/templates/_checks.yaml index 99614c7..311df7d 100644 --- a/release.d/librenms/templates/_checks.yaml +++ b/release.d/librenms/templates/_checks.yaml @@ -1,7 +1,7 @@ {{- define "librenms.checks" }} - name: check-mysql image: {{ .Values.checkMySQL.image.repository }}:{{ .Values.checkMySQL.image.tag }} - imagePullPolicy: Always + imagePullPolicy: IfNotPresent envFrom: - configMapRef: name: application @@ -18,19 +18,19 @@ key: librenms_mysql_password - name: check-rrdcached image: {{ .Values.checkRRDcached.image.repository }}:{{ .Values.checkRRDcached.image.tag }} - imagePullPolicy: Always + imagePullPolicy: IfNotPresent envFrom: - configMapRef: name: application - name: check-memcached image: {{ .Values.checkMemcached.image.repository }}:{{ .Values.checkMemcached.image.tag }} - imagePullPolicy: Always + imagePullPolicy: IfNotPresent envFrom: - configMapRef: name: application - name: check-redis image: {{ .Values.checkRedis.image.repository }}:{{ .Values.checkRedis.image.tag }} - imagePullPolicy: Always + imagePullPolicy: IfNotPresent envFrom: - configMapRef: name: application diff --git a/release.d/librenms/templates/application-ingress.yaml b/release.d/librenms/templates/application.yaml similarity index 82% rename from release.d/librenms/templates/application-ingress.yaml rename to release.d/librenms/templates/application.yaml index 6241efd..50c178c 100644 --- a/release.d/librenms/templates/application-ingress.yaml +++ b/release.d/librenms/templates/application.yaml @@ -1,3 +1,4 @@ +{{- if eq .Values.Application.serviceType "ingress" }} apiVersion: networking.k8s.io/v1beta1 #apiVersion: extensions/v1beta1 kind: Ingress @@ -30,6 +31,40 @@ spec: port: {{ .Values.Application.servicePort }} targetPort: application --- +{{- else if eq .Values.Application.serviceType "loadBalancer" }} +apiVersion: v1 +kind: Service +metadata: + namespace: {{ .Release.Namespace }} + name: application +spec: + type: LoadBalancer + loadBalancerSourceRanges: + - 0.0.0.0/0 + externalTrafficPolicy: Local + selector: + component: application + ports: + - name: application + port: {{ .Values.Application.servicePort }} + targetPort: application +--- +{{- else }} +apiVersion: v1 +kind: Service +metadata: + namespace: {{ .Release.Namespace }} + name: application +spec: + type: ClusterIP + selector: + component: application + ports: + - name: application + port: {{ .Values.Application.servicePort }} + targetPort: application +--- +{{- end }} apiVersion: apps/v1 kind: Deployment metadata: @@ -104,7 +139,7 @@ spec: mountPath: /sock - name: application-nginx image: {{ .Values.Application.nginxImage.repository }}:{{ .Values.Application.nginxImage.tag }} - imagePullPolicy: Always + imagePullPolicy: IfNotPresent envFrom: - configMapRef: name: application diff --git a/release.d/librenms/templates/secrets.yaml b/release.d/librenms/templates/secrets.yaml index b062825..54dafed 100644 --- a/release.d/librenms/templates/secrets.yaml +++ b/release.d/librenms/templates/secrets.yaml @@ -10,7 +10,9 @@ metadata: "helm.sh/hook-weight": "0" type: Opaque data: + {{- if eq .Values.librenmsServices.mysql.external.enabled false }} mysql_root_password: {{ required "MySQL root password must be provided (credentials.mysql.rootPassword)" .Values.credentials.mysql.rootPassword | b64enc }} + {{- end }} librenms_mysql_user: {{ required "MySQL user must be provided (credentials.mysql.user)" .Values.credentials.mysql.user | b64enc }} librenms_mysql_password: {{ required "MySQL password must be provided (credentials.mysql.password)" .Values.credentials.mysql.password | b64enc }} librenms_redis_password: {{ required "Redis password must be provided (credentials.redis.password)" .Values.credentials.redis.password | b64enc }} diff --git a/release.d/librenms/values.yaml b/release.d/librenms/values.yaml index f57affd..ce80c61 100644 --- a/release.d/librenms/values.yaml +++ b/release.d/librenms/values.yaml @@ -1,5 +1,19 @@ +credentials: + application: + administrativeUser: + administrativePassword: + administrativeEmail: + key: + mysql: + rootPassword: + user: + password: + redis: + password: + Application: + serviceType: cluster servicePort: 80 providerPort: 8000 baseURL: diff --git a/release.d/test.sh b/release.d/test.sh new file mode 100755 index 0000000..697888f --- /dev/null +++ b/release.d/test.sh @@ -0,0 +1,76 @@ + +helm install \ + --generate-name \ + --values values.yaml \ + --namespace librenms \ + --set snmpPing.enabled=true \ + --set Application.serviceType=ingress \ + --set librenmsServices.mysql.storage.type=temporary \ + --set librenmsServices.rrdcached.storage.type=temporary \ + --set librenmsServices.redis.storage.type=temporary \ + librenms + + #--dry-run \ + +#--- + +#helm template \ +# --generate-name \ +# --values values.yaml \ +# --namespace librenms-temporary \ +# --set librenmsServices.mysql.storage.type=temporary \ +# --set librenmsServices.rrdcached.storage.type=temporary \ +# --set librenmsServices.redis.storage.type=temporary \ +# --dry-run \ +# librenms + +#--- + +#helm install \ +# --generate-name \ +# --values values.yaml \ +# --namespace librenms \ +# --set librenmsServices.mysql.storage.claimName=mysql-volume \ +# --set librenmsServices.rrdcached.storage.claimName=rrdcached-volume \ +# --set librenmsServices.redis.storage.claimName=redis-volume \ +# --dry-run \ +# librenms + +#-------- + +#helm template \ +# --generate-name \ +# --values values.yaml \ +# --namespace librenms-temporary \ +# --set snmpPing.enabled=true \ +# --set librenmsServices.mysql.storage.type=temporary \ +# --set librenmsServices.rrdcached.storage.type=temporary \ +# --set librenmsServices.redis.storage.type=temporary \ +# --dry-run \ +# librenms + +#-------- + +#helm install \ +# --generate-name \ +# --values values.yaml \ +# --namespace librenms \ +# --set librenmsServices.mysql.external.enabled=true,librenmsServices.mysql.external.address=12.34.56.78,librenmsServices.mysql.external.port=3333 \ +# --set librenmsServices.rrdcached.external.enabled=true,librenmsServices.rrdcached.external.address=12.34.56.78,librenmsServices.rrdcached.external.port=4444 \ +# --dry-run \ +# librenms + +#-------- + +#helm template \ +# --generate-name \ +# --values values.yaml \ +# --namespace librenms \ +# --set snmpPing.enabled=true \ +# --set Application.serviceType=ingress \ +# --set librenmsServices.mysql.external.enabled=true,librenmsServices.mysql.external.address=12.34.56.78,librenmsServices.mysql.external.port=3306 \ +# --set librenmsServices.rrdcached.external.enabled=true,librenmsServices.rrdcached.external.address=12.34.56.78,librenmsServices.rrdcached.external.port=42217 \ +# --set librenmsServices.redis.storage.claimName=redis-volume \ +# --dry-run \ +# librenms +