diff --git a/chart/.helmignore b/chart/.helmignore deleted file mode 100644 index f0c131944..000000000 --- a/chart/.helmignore +++ /dev/null @@ -1,21 +0,0 @@ -# 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 diff --git a/chart/README.md b/chart/README.md deleted file mode 100644 index 9b5226edf..000000000 --- a/chart/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Deploy Kubeless with Helm - -Create a `kubeless` namespace: - -```console -$ kubectl create ns kubeless -``` - -Note that you could install kubeless in the default namespace or any other namespace. - -Install kubeless with [helm](https://github.com/kubernetes/helm) - -```console -helm init -helm install --name kubeless --namespace kubeless ./kubeless -``` - -After that, if you are having trouble deploying Kafka and Zookeeper, please check the specific guide [here](/docs/troubleshooting/#kafka-and-zookeeper-persistent-volume-creation) to create appropriate disks and PVs. If you are running Kubernetes in GKE,you can provision those persistent volumes manually deploying the manifests present in the [misc folder](https://github.com/kubeless/kubeless/tree/master/docs/misc). If you use other cloud provider, check [kubernetes docs](https://kubernetes.io/docs/concepts/storage/volumes/) to create these required volumes. diff --git a/chart/kubeless/Chart.yaml b/chart/kubeless/Chart.yaml deleted file mode 100644 index d9db64749..000000000 --- a/chart/kubeless/Chart.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -description: A Helm chart for Kubernetes -name: kubeless -version: 0.6.0 diff --git a/chart/kubeless/README.md b/chart/kubeless/README.md deleted file mode 100644 index 99214e174..000000000 --- a/chart/kubeless/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Chart for Kubeless - -It installs: - -* The CRD -* The controller -* The Kubeless configuration -* The UI -* A single node Kafka and Zookeeper setup \ No newline at end of file diff --git a/chart/kubeless/templates/_helpers.tpl b/chart/kubeless/templates/_helpers.tpl deleted file mode 100644 index e8400767c..000000000 --- a/chart/kubeless/templates/_helpers.tpl +++ /dev/null @@ -1,29 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -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). -*/}} -{{- define "fullname" -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{- /* -Credit: @technosophos -https://github.com/technosophos/common-chart/ -labels.standard prints the standard Helm labels. -The standard labels are frequently used in metadata. -*/ -}} -{{- define "labels.standard" -}} -app: {{ template "name" . }} -heritage: {{ .Release.Service | quote }} -release: {{ .Release.Name | quote }} -chart: {{ .Chart.Name }}-{{ .Chart.Version }} -{{- end -}} diff --git a/chart/kubeless/templates/controller-deployment.yaml b/chart/kubeless/templates/controller-deployment.yaml deleted file mode 100644 index 93a7be3f8..000000000 --- a/chart/kubeless/templates/controller-deployment.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: {{ template "fullname" . }}-controller - labels: -{{ include "labels.standard" . | indent 4 }} - kubeless: {{ template "fullname" . }}-controller -spec: - replicas: {{ .Values.controller.deployment.replicaCount }} - template: - metadata: - labels: - kubeless: {{ template "fullname" . }}-controller - release: {{ .Release.Name }} - spec: - containers: - - name: controller - image: "{{ .Values.controller.deployment.image.repository }}:{{ .Values.controller.deployment.image.tag }}" - imagePullPolicy: {{ .Values.controller.deployment.image.pullPolicy }} diff --git a/chart/kubeless/templates/cronjob-trigger-crd.yaml b/chart/kubeless/templates/cronjob-trigger-crd.yaml deleted file mode 100644 index e8818c606..000000000 --- a/chart/kubeless/templates/cronjob-trigger-crd.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1beta1 -description: Kubernetes Native Serverless Framework -kind: CustomResourceDefinition -metadata: - name: cronjobtriggers.kubeless.io - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - group: kubeless.io - names: - kind: CronJobTrigger - listKind: CronJobTriggerList - plural: cronjobtriggers - singular: cronjobtrigger - scope: Namespaced - version: v1beta1 diff --git a/chart/kubeless/templates/function-crd.yaml b/chart/kubeless/templates/function-crd.yaml deleted file mode 100644 index cb1cda89d..000000000 --- a/chart/kubeless/templates/function-crd.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1beta1 -description: Kubernetes Native Serverless Framework -kind: CustomResourceDefinition -metadata: - name: functions.kubeless.io - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - group: kubeless.io - names: - kind: Function - plural: functions - singular: function - scope: Namespaced - version: v1beta1 diff --git a/chart/kubeless/templates/http-trigger-crd.yaml b/chart/kubeless/templates/http-trigger-crd.yaml deleted file mode 100644 index 073986023..000000000 --- a/chart/kubeless/templates/http-trigger-crd.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1beta1 -description: Kubernetes Native Serverless Framework -kind: CustomResourceDefinition -metadata: - name: httptriggers.kubeless.io - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - group: kubeless.io - names: - kind: HTTPTrigger - listKind: HTTPTriggerList - plural: httptriggers - singular: httptrigger - scope: Namespaced - version: v1beta1 diff --git a/chart/kubeless/templates/kafka-controller-deployment.yaml b/chart/kubeless/templates/kafka-controller-deployment.yaml deleted file mode 100644 index 84f773141..000000000 --- a/chart/kubeless/templates/kafka-controller-deployment.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: kafka-trigger-controller - labels: -{{ include "labels.standard" . | indent 4 }} - kubeless: kafka-trigger-controller -spec: - replicas: {{ .Values.kafkaController.deployment.replicaCount }} - template: - metadata: - labels: - kubeless: kafka-trigger-controller - release: {{ .Release.Name }} - spec: - containers: - - name: kafka-trigger-controller - image: "{{ .Values.kafkaController.deployment.image.repository }}:{{ .Values.kafkaController.deployment.image.tag }}" - imagePullPolicy: {{ .Values.kafkaController.deployment.image.pullPolicy }} diff --git a/chart/kubeless/templates/kafka-headless-svc.yaml b/chart/kubeless/templates/kafka-headless-svc.yaml deleted file mode 100644 index af2dfb813..000000000 --- a/chart/kubeless/templates/kafka-headless-svc.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# A headless service to create DNS records -apiVersion: v1 -kind: Service -metadata: - name: {{ template "fullname" . }}-broker - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - ports: - - port: 9092 - # [podname].broker.kubeless.svc.cluster.local - clusterIP: None - selector: - app: {{ template "fullname" . }}-kafka diff --git a/chart/kubeless/templates/kafka-stateful.yaml b/chart/kubeless/templates/kafka-stateful.yaml deleted file mode 100644 index c1657de96..000000000 --- a/chart/kubeless/templates/kafka-stateful.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: apps/v1beta1 -kind: StatefulSet -metadata: - name: {{ template "fullname" . }}-kafka - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - serviceName: "broker" - replicas: {{ .Values.kafka.statefulSet.replicaCount }} - template: - metadata: - labels: - kubeless: {{ template "fullname" . }}-kafka - spec: - terminationGracePeriodSeconds: 10 - containers: - - name: broker - image: "{{ .Values.kafka.statefulSet.image.repository }}:{{ .Values.kafka.statefulSet.image.tag }}" - imagePullPolicy: {{ .Values.kafka.statefulSet.image.pullPolicy }} - env: - - name: KAFKA_ADVERTISED_HOST_NAME - value: broker.kubeless - - name: KAFKA_ADVERTISED_PORT - value: "9092" - - name: KAFKA_PORT - value: "9092" - - name: KAFKA_ZOOKEEPER_CONNECT - value: zookeeper.kubeless:2181 - - name: ALLOW_PLAINTEXT_LISTENER - value: "yes" - ports: - - containerPort: 9092 - resources: {} - volumeMounts: - - name: datadir - mountPath: /bitnami/kafka/data - volumeClaimTemplates: - - metadata: - name: datadir - spec: - accessModes: [ "ReadWriteOnce" ] - resources: - requests: - storage: 1Gi diff --git a/chart/kubeless/templates/kafka-svc.yaml b/chart/kubeless/templates/kafka-svc.yaml deleted file mode 100644 index 09ddcb048..000000000 --- a/chart/kubeless/templates/kafka-svc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "fullname" . }}-kafka - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - ports: - - port: 9092 - selector: - app: {{ template "fullname" . }}-kafka diff --git a/chart/kubeless/templates/kafka-trigger-crd.yaml b/chart/kubeless/templates/kafka-trigger-crd.yaml deleted file mode 100644 index 0cf8ebc98..000000000 --- a/chart/kubeless/templates/kafka-trigger-crd.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1beta1 -description: Kubernetes Native Serverless Framework -kind: CustomResourceDefinition -metadata: - name: kafkatriggers.kubeless.io - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - group: kubeless.io - names: - kind: KafkaTrigger - listKind: KafkaTriggerList - plural: kafkatriggers - singular: kafkatrigger - scope: Namespaced - version: v1beta1 diff --git a/chart/kubeless/templates/kubeless-config.yaml b/chart/kubeless/templates/kubeless-config.yaml deleted file mode 100644 index 9753d3616..000000000 --- a/chart/kubeless/templates/kubeless-config.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: kubeless-config -data: - builder-image: {{ .Values.functionBuilderImage }} - enable-build-step: "false" - runtime-images: |- -{{ .Values.runtimeImages | indent 4 }} diff --git a/chart/kubeless/templates/ui-deployment.yaml b/chart/kubeless/templates/ui-deployment.yaml deleted file mode 100644 index aad548b03..000000000 --- a/chart/kubeless/templates/ui-deployment.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: {{ template "fullname" . }}-ui - labels: -{{ include "labels.standard" . | indent 4 }} - controller: {{ template "fullname" . }}-ui -spec: - replicas: {{ .Values.controller.deployment.replicaCount }} - template: - metadata: - labels: - controller: {{ template "fullname" . }}-ui - spec: - containers: - - name: ui - image: "{{ .Values.ui.deployment.ui.image.repository }}:{{ .Values.ui.deployment.ui.image.tag }}" - imagePullPolicy: {{ .Values.ui.deployment.ui.image.pullPolicy }} - ports: - - containerPort: 3000 - protocol: TCP - - name: proxy - image: "{{ .Values.ui.deployment.proxy.image.repository }}:{{ .Values.ui.deployment.proxy.image.tag }}" - imagePullPolicy: {{ .Values.ui.deployment.proxy.image.pullPolicy }} - args: - - proxy - - "-p" - - "8080" diff --git a/chart/kubeless/templates/ui-svc.yaml b/chart/kubeless/templates/ui-svc.yaml deleted file mode 100644 index 88f633bfb..000000000 --- a/chart/kubeless/templates/ui-svc.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "fullname" . }}-ui - labels: -{{ include "labels.standard" . | indent 4 }} - controller: {{ template "fullname" . }}-ui -spec: - ports: - - name: {{ .Values.ui.service.name }} - port: {{ .Values.ui.service.externalPort }} - protocol: TCP - targetPort: 3000 - selector: - controller: {{ template "fullname" . }}-ui - sessionAffinity: None - type: {{ .Values.ui.service.type }} diff --git a/chart/kubeless/templates/zk-headless-svc.yaml b/chart/kubeless/templates/zk-headless-svc.yaml deleted file mode 100644 index 50d7e9a3f..000000000 --- a/chart/kubeless/templates/zk-headless-svc.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "fullname" . }}-zoo - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - ports: - - port: 2888 - name: peer - - port: 3888 - name: leader-election - clusterIP: None - selector: - kubeless: {{ template "fullname" . }}-zookeeper diff --git a/chart/kubeless/templates/zk-stateful.yaml b/chart/kubeless/templates/zk-stateful.yaml deleted file mode 100644 index 90dac975a..000000000 --- a/chart/kubeless/templates/zk-stateful.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: apps/v1beta1 -kind: StatefulSet -metadata: - name: {{ template "fullname" . }}-zoo - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - serviceName: "{{ template "fullname" . }}-zoo" - replicas: {{ .Values.zookeeper.statefulSet.replicaCount }} - template: - metadata: - labels: - kubeless: {{ template "fullname" . }}-zookeeper - spec: - terminationGracePeriodSeconds: 10 - containers: - - name: zookeeper - image: "{{ .Values.zookeeper.statefulSet.image.repository }}:{{ .Values.zookeeper.statefulSet.image.tag }}" - imagePullPolicy: {{ .Values.zookeeper.statefulSet.image.pullPolicy }} - env: - - name: ZOO_SERVERS - value: server.1=zoo-0.zoo:2888:3888:participant - - name: ALLOW_ANONYMOUS_LOGIN - value: "yes" - ports: - - containerPort: 2181 - name: client - - containerPort: 2888 - name: peer - - containerPort: 3888 - name: leader-election - volumeMounts: - - name: zookeeper - mountPath: /bitnami/zookeeper - # There's defaults in this folder, such as logging config - #- name: conf - # mountPath: /conf - volumes: - #- name: conf - # emptyDir: {} - - name: zookeeper - emptyDir: {} diff --git a/chart/kubeless/templates/zk-svc.yaml b/chart/kubeless/templates/zk-svc.yaml deleted file mode 100644 index 68fa82722..000000000 --- a/chart/kubeless/templates/zk-svc.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# Headless service is for PetSet DNS, this one is for clients -apiVersion: v1 -kind: Service -metadata: - name: {{ template "fullname" . }}-zookeeper - labels: -{{ include "labels.standard" . | indent 4 }} -spec: - ports: - - port: 2181 - name: client - selector: - kubeless: {{ template "fullname" . }}-zookeeper diff --git a/chart/kubeless/values.yaml b/chart/kubeless/values.yaml deleted file mode 100644 index 94b887e1a..000000000 --- a/chart/kubeless/values.yaml +++ /dev/null @@ -1,147 +0,0 @@ -# Default values for kubeless. - -## Controller configuration -controller: - deployment: - replicaCount: 1 - image: - repository: bitnami/kubeless-controller-manager - tag: v0.6.0 - pullPolicy: IfNotPresent - -kafkaController: - deployment: - replicaCount: 1 - image: - repository: bitnami/kafka-trigger-controller - tag: v0.6.0 - pullPolicy: IfNotPresent - -## Runtimes configuration -runtimeImages: |- - [ - { - "ID": "python", - "versions": [ - { - "name": "python27", - "version": "2.7", - "runtimeImage": "kubeless/python@sha256:07cfb0f3d8b6db045dc317d35d15634d7be5e436944c276bf37b1c630b03add8", - "initImage": "python:2.7" - }, - { - "name": "python34", - "version": "3.4", - "runtimeImage": "kubeless/python@sha256:f19640c547a3f91dbbfb18c15b5e624029b4065c1baf2892144e07c36f0a7c8f", - "initImage": "python:3.4" - }, - { - "name": "python36", - "version": "3.6", - "runtimeImage": "kubeless/python@sha256:0c9f8f727d42625a4e25230cfe612df7488b65f283e7972f84108d87e7443d72", - "initImage": "python:3.6" - } - ], - "depName": "requirements.txt", - "fileNameSuffix": ".py" - }, - { - "ID": "nodejs", - "versions": [ - { - "name": "node6", - "version": "6", - "runtimeImage": "kubeless/nodejs@sha256:61c5a10aacb709c4575a09a4aa28f822b2d008c0dbf4aa0b124705ee9ca143f9", - "initImage": "node:6.10" - }, - { - "name": "node8", - "version": "8", - "runtimeImage": "kubeless/nodejs@sha256:fc1aa96e55116400ee13d664a655dfb2025ded91858ebfd5fc0c8f0d6b923eba", - "initImage": "node:8" - } - ], - "depName": "package.json", - "fileNameSuffix": ".js" - }, - { - "ID": "ruby", - "versions": [ - { - "name": "ruby24", - "version": "2.4", - "runtimeImage": "kubeless/ruby@sha256:0dce29c0eb2a246f7d825b6644eeae7957b26f2bfad2b7987f2134cc7b350f2f", - "initImage": "bitnami/ruby:2.4" - } - ], - "depName": "Gemfile", - "fileNameSuffix": ".rb" - }, - { - "ID": "php", - "versions": [ - { - "name": "php72", - "version": "7.2", - "runtimeImage": "kubeless/php@sha256:82b94c691302bc82f3900444255cabb8f230487764eafeba7866ac49d90ddc3b", - "initImage": "composer:1.6" - } - ], - "depName": "composer.json", - "fileNameSuffix": ".php" - }, - { - "ID": "go", - "compiled": true, - "versions": [ - { - "name": "go1.10", - "version": "1.10", - "runtimeImage": "kubeless/go@sha256:bf72622344a54e4360f31d3fea5eb9dca2c96fbedc6f0ad7c54f3eb8fb7bd353", - "initImage": "kubeless/go-init@sha256:ce6ef4fafe518ed78b3a68b03947c064fec1cf8c667cd109e9331f227877b3a9" - } - ], - "depName": "Gopkg.toml", - "fileNameSuffix": ".go" - } - ] - -functionBuilderImage: kubeless/function-image-builder:v0.6.0 - -## UI configuration -ui: - deployment: - replicaCount: 1 - ui: - image: - repository: bitnami/kubeless-ui - tag: latest - pullPolicy: IfNotPresent - proxy: - image: - repository: kelseyhightower/kubectl - tag: 1.4.0 - pullPolicy: IfNotPresent - - service: - name: ui-port - type: NodePort - externalPort: 3000 - -## Zookeeper configuration -zookeeper: - statefulSet: - replicaCount: 1 - image: - repository: bitnami/zookeeper@sha256 - tag: f66625a8a25070bee18fddf42319ec58f0c49c376b19a5eb252e6a4814f07123 - pullPolicy: IfNotPresent - -## Kafka configuration -kafka: - statefulSet: - replicaCount: 1 - image: - repository: bitnami/kafka@sha256 - tag: 0c4be25cd3b31176a4c738da64d988d614b939021bedf7e1b0cc72b37a071ecb - pullPolicy: IfNotPresent