Add fission and fission-function namespaces to template variables

Also, update readme.
This commit is contained in:
Soam Vasani
2017-02-16 11:08:47 -08:00
parent 6e4115cb5d
commit 41baa7b6bf
4 changed files with 42 additions and 30 deletions
+19 -15
View File
@@ -25,31 +25,35 @@ $ helm delete my-release
``` ```
## Configuration ## Configuration
The following tables lists the configurable parameters of the Fission chart and their default values.
The following table lists the configurable parameters of the Fission chart and their default values.
| Parameter | Description | Default | | Parameter | Description | Default |
| ----------------------- | ---------------------------------- | ---------------------------------------------------------- | |---------------------+--------------------------------------------+--------------------------|
| `serviceType` | Type service to use | `LoadBalancer`. If minikube `NodePort` | | `serviceType` | Type of service to use | `LoadBalancer`. |
| `image` | Fission image repository | `fission/fission-bundle` | | `image` | Fission image | `fission/fission-bundle` |
| `imageTag` | Fission image version | `alpha20170124` | | `imageTag` | Fission image tag | `alpha20170124` |
| `controllerPort` | Fission Controller Service Port | `31313` | | `controllerPort` | Fission Controller Service Port | `31313` |
| `routerPort` | Fission Router Service Port | `31314` | | `routerPort` | Fission Router Service Port | `31314` |
| `namespace` | Namespace for Fission deployments/services | `fission` |
| `functionNamespace` | Namespace for Fission functions | `fission-function` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```bash ```bash
$ helm install --name my-release \ $ helm install --name my-release --set image=custom/fission-bundle,imageTag=v1 fission
--set image=custom/fission-bundle,imageTag=v1 \
fission
``` ```
Default values.yml can also ignored with custom file. If you're using minikube, set serviceType to NodePort:
```bash
$ helm install --name my-release --set serviceType=NodePort fission
```
You can also set parameters with a yaml file (see values.yaml for
what it should look like):
```bash ```bash
$ helm install --name my-release -f values.yaml fission $ helm install --name my-release -f values.yaml fission
``` ```
For reference check [values.yaml](values.yaml).
+12 -10
View File
@@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: fission name: {{ .Values.namespace }}
labels: labels:
name: fission name: fission
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -10,7 +10,7 @@ metadata:
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: fission-function name: {{ .Values.functionNamespace }}
labels: labels:
name: fission-function name: fission-function
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -20,7 +20,9 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: controller name: controller
namespace: fission namespace: {{ .Values.namespace }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
replicas: 1 replicas: 1
template: template:
@@ -39,7 +41,7 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: router name: router
namespace: fission namespace: {{ .Values.namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
@@ -60,7 +62,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: poolmgr name: poolmgr
namespace: fission namespace: {{ .Values.namespace }}
labels: labels:
svc: poolmgr svc: poolmgr
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -76,7 +78,7 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: poolmgr name: poolmgr
namespace: fission namespace: {{ .Values.namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
@@ -90,14 +92,14 @@ spec:
- name: poolmgr - name: poolmgr
image: "{{ .Values.image }}:{{ .Values.imageTag }}" image: "{{ .Values.image }}:{{ .Values.imageTag }}"
command: ["/fission-bundle"] command: ["/fission-bundle"]
args: ["--poolmgrPort", "8888"] args: ["--poolmgrPort", "8888", "--namespace", "{{ .Values.functionNamespace }}"]
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: kubewatcher name: kubewatcher
namespace: fission namespace: {{ .Values.namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
@@ -118,7 +120,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: etcd name: etcd
namespace: fission namespace: {{ .Values.namespace }}
labels: labels:
svc: etcd svc: etcd
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -134,7 +136,7 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: etcd name: etcd
namespace: fission namespace: {{ .Values.namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
+2 -2
View File
@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: router name: router
namespace: fission namespace: {{ .Values.namespace }}
labels: labels:
svc: router svc: router
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -20,7 +20,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: controller name: controller
namespace: fission namespace: {{ .Values.namespace }}
labels: labels:
svc: controller svc: controller
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+6
View File
@@ -16,3 +16,9 @@ imageTag: alpha20170124
controllerPort: 31313 controllerPort: 31313
## Port at which Fission controller service should be exposed ## Port at which Fission controller service should be exposed
routerPort: 31314 routerPort: 31314
## Namespace in which to run fission deployments and services
fissionNamespace: fission
## Namespace in which to run fission functions
fissionFunctionNamespace: fission-function