From 401025be7a89c4f4b5d0a057124751e7a7067925 Mon Sep 17 00:00:00 2001 From: sagit <36596628+Sagit-chu@users.noreply.github.com> Date: Thu, 24 Mar 2022 12:59:43 +0800 Subject: [PATCH] feat(double-take): Add double-take (#2263) --- charts/incubator/double-take/.helmignore | 26 ++ charts/incubator/double-take/Chart.yaml | 29 ++ charts/incubator/double-take/questions.yaml | 307 ++++++++++++++++++ .../double-take/templates/common.yaml | 1 + charts/incubator/double-take/values.yaml | 16 + docs/_static/img/appicons/double-take.png | Bin 0 -> 4891 bytes docs/manual/default-ports.md | 1 + 7 files changed, 380 insertions(+) create mode 100644 charts/incubator/double-take/.helmignore create mode 100644 charts/incubator/double-take/Chart.yaml create mode 100644 charts/incubator/double-take/questions.yaml create mode 100644 charts/incubator/double-take/templates/common.yaml create mode 100644 charts/incubator/double-take/values.yaml create mode 100644 docs/_static/img/appicons/double-take.png diff --git a/charts/incubator/double-take/.helmignore b/charts/incubator/double-take/.helmignore new file mode 100644 index 00000000000..4379e2b3014 --- /dev/null +++ b/charts/incubator/double-take/.helmignore @@ -0,0 +1,26 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl diff --git a/charts/incubator/double-take/Chart.yaml b/charts/incubator/double-take/Chart.yaml new file mode 100644 index 00000000000..eff1a1fdfc2 --- /dev/null +++ b/charts/incubator/double-take/Chart.yaml @@ -0,0 +1,29 @@ +apiVersion: v2 +kubeVersion: ">=1.16.0-0" +name: double-take +version: 0.0.1 +appVersion: "2.2.0" +description: Unified UI and API for processing and training images for facial recognition +type: application +deprecated: false +home: https://github.com/truecharts/apps/tree/master/charts/stable/double-take +icon: https://truecharts.org/_static/img/appicons/double-take.png +keywords: + - ai + - double-take +sources: + - https://github.com/jakowenko/double-take +dependencies: +- name: common + repository: https://truecharts.org + version: 9.1.8 + # condition: +maintainers: +- email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +annotations: + truecharts.org/catagories: | + - media + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/incubator/double-take/questions.yaml b/charts/incubator/double-take/questions.yaml new file mode 100644 index 00000000000..60e4a9763f3 --- /dev/null +++ b/charts/incubator/double-take/questions.yaml @@ -0,0 +1,307 @@ +# Include{groups} +portals: + open: + 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: + additional_attrs: true + 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} + +# Include{containerConfig} + + - variable: service + group: "Networking and Services" + label: "Configure Service(s)" + schema: + additional_attrs: true + type: dict + attrs: + - variable: main + label: "Main Service" + description: "The Primary service on which the healthcheck runs, often the webUI" + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelector} + - variable: main + label: "Main Service Port Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 10200 + required: true + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: protocol + label: "Port Type" + schema: + type: string + default: "HTTP" + 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: 3000 + + - 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} + + - variable: persistence + label: "Integrated Persistent Storage" + description: "Integrated Persistent Storage" + group: "Storage and Persistence" + schema: + additional_attrs: true + type: dict + attrs: + - variable: data + label: "App Data Storage" + description: "Stores the Application Data." + schema: + additional_attrs: true + type: dict + attrs: + - variable: type + label: "Type of Storage" + description: "Sets the persistence type, Anything other than PVC could break rollback!" + schema: + type: string + default: "simplePVC" + enum: + - value: "simplePVC" + description: "PVC (simple)" + - value: "simpleHP" + description: "HostPath (simple)" + - value: "emptyDir" + description: "emptyDir" + - value: "pvc" + description: "pvc" + - value: "hostPath" + description: "hostPath" +# Include{persistenceBasic} + - variable: hostPath + label: "hostPath" + description: "Path inside the container the storage is mounted" + schema: + show_if: [["type", "=", "hostPath"]] + type: hostpath + - variable: medium + label: "EmptyDir Medium" + schema: + show_if: [["type", "=", "emptyDir"]] + type: string + default: "" + enum: + - value: "" + description: "Default" + - value: "Memory" + description: "Memory" +# Include{persistenceAdvanced} +# Include{persistenceList} + + - variable: ingress + label: "" + group: "Ingress" + schema: + additional_attrs: true + type: dict + attrs: + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} + +# Include{ingressTLS} + +# Include{ingressTraefik} + +# Include{ingressExpert} + +# Include{ingressList} + +# Include{security} + + - 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: + additional_attrs: true + type: dict + attrs: + - variable: privileged + label: "Privileged mode" + schema: + type: boolean + default: false + - variable: readOnlyRootFilesystem + label: "ReadOnly Root Filesystem" + schema: + type: boolean + default: true + - variable: allowPrivilegeEscalation + label: "Allow Privilege Escalation" + schema: + type: boolean + default: false + - variable: runAsNonRoot + label: "runAsNonRoot" + schema: + type: boolean + default: true +# Include{securityContextAdvanced} + + - variable: podSecurityContext + group: "Security and Permissions" + label: "Pod Security Context" + schema: + additional_attrs: true + type: dict + attrs: + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 568 + - variable: runAsGroup + label: "runAsGroup" + description: The groupID this App of the user running the application" + schema: + type: int + default: 568 + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 +# Include{podSecurityContextAdvanced} + +# Include{resources} + +# Include{advanced} + +# Include{addons} diff --git a/charts/incubator/double-take/templates/common.yaml b/charts/incubator/double-take/templates/common.yaml new file mode 100644 index 00000000000..a6613c2ce21 --- /dev/null +++ b/charts/incubator/double-take/templates/common.yaml @@ -0,0 +1 @@ +{{ include "common.all" . }} diff --git a/charts/incubator/double-take/values.yaml b/charts/incubator/double-take/values.yaml new file mode 100644 index 00000000000..6339f7362fd --- /dev/null +++ b/charts/incubator/double-take/values.yaml @@ -0,0 +1,16 @@ +image: + repository: jakowenko/double-take + pullPolicy: IfNotPresent + tag: 1.7.0@sha256:6960ec3f20ae224badb2c3826198286227edd5c5af7edb2c95b5e9eff182fb9a + +service: + main: + ports: + main: + targetPort: 3000 + port: 10200 + +persistence: + data: + enabled: true + mountPath: "/.storage" diff --git a/docs/_static/img/appicons/double-take.png b/docs/_static/img/appicons/double-take.png new file mode 100644 index 0000000000000000000000000000000000000000..43621c008a270acf75169dcc9d78660a6115162a GIT binary patch literal 4891 zcmd6qc{J2*|HmnYrm==BV@ou)$V|wREMpYLmVIBwl0-LS3&}8skZd81Wtb@@d$z2D z6xl{5cUg-Y$r5sl;+gV0&i(s6&vT#WoZmmsIWyOJU7z>+^Zs1doH=K{lVFNOumJ^u z3=9lxmkspH85kJle!f|c(knH*MIIy`;)^bjg5D-SAke|2>=U7`bB zC6meY#zUan=#_(&UZ;EL+XFM5>2*5O>;DXN^+5V79E2Z+{I&6)&Ht`)a18o-0RPT* zF!yl!f&ZZ8fDfg=0lM=b|F1yzA0`~a|2f8A{r_RYLDc`J@i5^K{*%#%=6?x)lkhM7 ze^We+`WsJtQ{5E(8~-iH9BIM8c;qM(Gk}Hl81OiVjh%y&i~9r*FW*Ui0YM?Ku!yLb z_$i6gl2T_N(lWC0XB8CBDM6K0R4=HhYiM57x}>e6s|VLd7+k($Xk?5uF*CQgYH4L{ zV{2#c;OOM+;_Bw^f%5e7_POSJ-OoSZ=5Imh;E>R;@LLg)QMaS-#9(6Mu<^Kr#Jfq! zDfd$Er=@3PW&EEw8Aos;;ShR#)H9*z~-)rM0cS zgVNd6{i5gPtKPoX{R4wT!_<*CqqMhUzrTAwJ~25pJ@et??A#yo3yYtYJ}3n;}AvasPOu(Pddz-aA@bbHX8m zF<_ZDel5`fmt$FFyjC`Lr;w&%IaAPA>d;jqx5@bp?J@4~zX)o}AcF;%q_Mo)KuYc!eX(S|mBRBCYjE%OfR8y{28miuxt9Phfg8 zSOtNS_ne4&=#_8vJDi1vH0U)bCj!d<46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MFbJ&ilTcM5ON`b`M8j4C>5HVSRWzSel^1eiMctmVGpb zI2}$#y&+1Zcq(4=jY=|@2#7Yz#i=$Wo2doK7Ns^ljx`fVRBcK$lXgmtSqOTm*75R@ zfeu(Q-(wc|Ta#G$^1O&wF&^$9k19?2%eWcL^|Ve_Ehgvf>N|Z#H0+56 YSt~8wQB+8x|J`M{3`gpf>$t@H105ogdH?_b literal 0 HcmV?d00001 diff --git a/docs/manual/default-ports.md b/docs/manual/default-ports.md index 01afb5ee633..1748d531bcc 100644 --- a/docs/manual/default-ports.md +++ b/docs/manual/default-ports.md @@ -355,6 +355,7 @@ These defaults can of course be changed, but as we guarantee "sane, working defa | outline | main | main | 10196 | TCP | | | chevereto | main | main | 10197 | TCP | | | kimai | main | main | 10198 | TCP | | +| double-take | main | main | 10200 | TCP | | | storj-node | main | main | 14002 | TCP | | | satisfactory | beacon | beacon | 15000 | UDP | | | satisfactory | query | query | 15777 | UDP | |