diff --git a/charts/incubator/shlink/Chart.yaml b/charts/incubator/shlink/Chart.yaml new file mode 100644 index 00000000000..7fcc2d3fba0 --- /dev/null +++ b/charts/incubator/shlink/Chart.yaml @@ -0,0 +1,36 @@ +apiVersion: v2 +appVersion: "2.10.1" +dependencies: +- name: common + repository: https://truecharts.org + version: 8.9.25 +- condition: postgresql.enabled + name: postgresql + repository: https://truecharts.org/ + version: 6.0.37 +- condition: redis.enabled + name: redis + repository: https://truecharts.org/ + version: 1.0.42 +deprecated: false +description: A PHP-based self-hosted URL shortener that can be used to serve shortened URLs under your own custom domain. +home: https://github.com/truecharts/apps/tree/master/charts/stable/shlink +icon: https://truecharts.org/_static/img/appicons/shlink-icon.png +keywords: +- url +- shortener +kubeVersion: '>=1.16.0-0' +maintainers: +- email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: shlink +sources: +- https://github.com/shlinkio/shlink +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - utilities + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/incubator/shlink/questions.yaml b/charts/incubator/shlink/questions.yaml new file mode 100644 index 00000000000..69bf93a0e32 --- /dev/null +++ b/charts/incubator/shlink/questions.yaml @@ -0,0 +1,288 @@ +# Include{groups} +portals: + web_portal: + protocols: + - "$kubernetes-resource_configmap_portal_protocol" + host: + - "$kubernetes-resource_configmap_portal_host" + ports: + - "$kubernetes-resource_configmap_portal_port" +questions: + - variable: portal + group: "Container Image" + label: "Configure Portal Button" + schema: + type: dict + hidden: true + attrs: + - variable: enabled + label: "Enable" + description: "enable the portal button" + schema: + hidden: true + editable: false + type: boolean + default: true +# Include{global} + + - variable: controller + group: "Controller" + label: "" + schema: + type: dict + attrs: + - variable: advanced + label: "Show Advanced Controller Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: type + description: "Please specify type of workload to deploy" + label: "(Advanced) Controller Type" + schema: + type: string + default: "deployment" + required: true + enum: + - value: "deployment" + description: "Deployment" + - value: "statefulset" + description: "Statefulset" + - value: "daemonset" + description: "Daemonset" + - variable: replicas + description: "Number of desired pod replicas" + label: "Desired Replicas" + schema: + type: int + default: 1 + required: true + - variable: strategy + description: "Please specify type of workload to deploy" + label: "(Advanced) Update Strategy" + schema: + type: string + default: "Recreate" + required: true + enum: + - value: "Recreate" + description: "Recreate: Kill existing pods before creating new ones" + - value: "RollingUpdate" + description: "RollingUpdate: Create new pods and then kill old ones" + - value: "OnDelete" + description: "(Legacy) OnDelete: ignore .spec.template changes" +# Include{controllerExpert} + + - variable: env + group: "Container Configuration" + label: "Image Environment" + schema: + type: dict + attrs: +# Include{fixedEnv} + - variable: DEFAULT_DOMAIN + label: "Default Domain" + description: "The default short domain used for this shlink instance. For example doma.in." + schema: + type: string + default: "" + - variable: GEOLITE_LICENSE_KEY + label: "GeoLite2 License Key" + description: "The license key used to download new GeoLite2 database files." + schema: + type: string + default: "" +# Include{containerConfig} + - variable: service + group: "Networking and Services" + label: "Configure Service(s)" + schema: + type: dict + attrs: + - variable: main + label: "Main Service" + description: "The Primary service on which the healthcheck runs, often the webUI" + schema: + type: dict + attrs: +# Include{serviceSelector} + - variable: main + label: "Main Service Port Configuration" + schema: + type: dict + attrs: + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: enabled + label: "Enable the port" + schema: + type: boolean + default: true + - variable: protocol + label: "Port Type" + schema: + type: string + default: "HTTPS" + enum: + - value: HTTP + description: "HTTP" + - value: "HTTPS" + description: "HTTPS" + - value: TCP + description: "TCP" + - value: "UDP" + description: "UDP" + - variable: nodePort + label: "Node Port (Optional)" + description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer" + schema: + type: int + min: 9000 + max: 65535 + - variable: targetPort + label: "Target Port" + description: "The internal(!) port on the container the Application runs on" + schema: + type: int + default: 10153 + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 10153 + required: true + + - variable: serviceexpert + group: "Networking and Services" + label: "Show Expert Config" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostNetwork + group: "Networking and Services" + label: "Host-Networking (Complicated)" + schema: + type: boolean + default: false + +# Include{serviceExpert} + +# Include{serviceList} + +# Include{persistenceList} + + - variable: ingress + label: "" + group: "Ingress" + schema: + type: dict + attrs: + - variable: main + label: "Main Ingress" + schema: + type: dict + attrs: +# Include{ingressDefault} + +# Include{ingressTLS} + +# Include{ingressTraefik} + +# Include{ingressExpert} + +# Include{ingressList} + + - variable: advancedSecurity + label: "Show Advanced Security Settings" + group: "Security and Permissions" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: securityContext + label: "Security Context" + schema: + type: dict + attrs: + - variable: privileged + label: "Privileged mode" + schema: + type: boolean + default: false + - variable: readOnlyRootFilesystem + label: "ReadOnly Root Filesystem" + schema: + type: boolean + default: false + - variable: allowPrivilegeEscalation + label: "Allow Privilege Escalation" + schema: + type: boolean + default: false + - variable: runAsNonRoot + label: "runAsNonRoot" + schema: + type: boolean + default: false + + - variable: podSecurityContext + group: "Security and Permissions" + label: "Pod Security Context" + schema: + type: dict + attrs: + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 0 + - variable: runAsGroup + label: "runAsGroup" + description: The groupID this App of the user running the application" + schema: + type: int + default: 0 + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 + - variable: supplementalGroups + label: "supplemental Groups" + schema: + type: list + default: [] + items: + - variable: supplementalGroupsEntry + label: "supplemental Group" + schema: + type: int + - variable: fsGroupChangePolicy + label: "When should we take ownership?" + schema: + type: string + default: "OnRootMismatch" + enum: + - value: "OnRootMismatch" + description: "OnRootMismatch" + - value: "Always" + description: "Always" + +# Include{resources} + +# Include{advanced} + +# Include{addons} diff --git a/charts/incubator/shlink/templates/common.yaml b/charts/incubator/shlink/templates/common.yaml new file mode 100644 index 00000000000..a6613c2ce21 --- /dev/null +++ b/charts/incubator/shlink/templates/common.yaml @@ -0,0 +1 @@ +{{ include "common.all" . }} diff --git a/charts/incubator/shlink/values.yaml b/charts/incubator/shlink/values.yaml new file mode 100644 index 00000000000..245a307f7b7 --- /dev/null +++ b/charts/incubator/shlink/values.yaml @@ -0,0 +1,54 @@ +image: + repository: tccr.io/truecharts/shlink + pullPolicy: IfNotPresent + tag: v2.10.1@sha256:2abccbd1a150da840849f01789e4f824e35ee1136da7f5e56abaa86a290794ae + +securityContext: + runAsNonRoot: false + readOnlyRootFilesystem: false + +podSecurityContext: + runAsUser: 0 + runAsGroup: 0 + +service: + main: + protocol: HTTPS + ports: + main: + targetPort: 10153 + port: 10153 + +env: + DEFAULT_DOMAIN: "" + GEOLITE_LICENSE_KEY: "" + PORT: 10153 + IS_HTTPS_ENABLED: true + DB_DRIVER: "postgres" + DB_USER: "{{ .Values.postgresql.postgresqlUsername }}" + DB_NAME: "{{ .Values.postgresql.postgresqlDatabase }}" + +envValueFrom: + DB_PASSWORD: + secretKeyRef: + name: dbcreds + key: postgresql-password + DB_HOST: + secretKeyRef: + name: dbcreds + key: plainhost + REDIS_SERVERS: + secretKeyRef: + name: rediscreds + key: url + +postgresql: + enabled: true + existingSecret: "dbcreds" + postgresqlUsername: shlink + postgresqlDatabase: shlink + +redis: + enabled: true + existingSecret: "rediscreds" + redisUsername: "default" diff --git a/docs/_static/img/appicons/shlink-icon.png b/docs/_static/img/appicons/shlink-icon.png new file mode 100644 index 00000000000..47521550a40 Binary files /dev/null and b/docs/_static/img/appicons/shlink-icon.png differ diff --git a/docs/manual/default-ports.md b/docs/manual/default-ports.md index 61608cf43e4..7aab23fdf53 100644 --- a/docs/manual/default-ports.md +++ b/docs/manual/default-ports.md @@ -293,6 +293,7 @@ These defaults can of course be changed, but as we guarantee "sane, working defa | pydio-cells | main | main | 10150 | TCP | | | scrutiny | main | main | 10151 | TCP | | | kodi-headless | websocket | websocket | 10152 | TCP | | +| shlink | main | main | 10153 | HTTPS | | | hyperion-ng | boblightservice | boblightservice | 19333 | TCP | | | hyperion-ng | jsonservice | jsonservice | 19444 | TCP | | | hyperion-ng | protobufservice | protobufservice | 19445 | TCP | |