---
# System prepended metadata

title: Fission Websocket and RequestPerPod intermediate build

---

# Fission Websocket and RequestPerPod intermediate build

## Installation Instruction

If you're installing Fission on the cluster for the first time:
1. Create the namespace fission
```
kubectl create ns fission
````
2. Install the chart
```
helm install fission --namespace fission --set mqt_keda.enabled=true --set fetcher.image=vishalbiyani/fetcher --set fetcher.imageTag=wsrpp --set image=vishalbiyani/fission --set imageTag=wsrpp --set preUpgradeChecksImage=vishalbiyani/preupgradechecks --set prometheus.enabaled=false https://github.com/fission/fission/releases/download/1.12.0/fission-core-1.12.0.tgz
```
3. Apply the roles file, assuming you will be deploying functions in the `fission-function` namespace, you have to create a similar role if you plan to deploy functions to other namespaces:
```
kubectl apply -f https://raw.githubusercontent.com/fission/fission/master/fetcher-pod-sa.yaml
```
4. Download latest CLI from https://www.dropbox.com/s/wxq7dodg1wl3hu2/fission?dl=0 and use it.

                                **  OR **

If you're upgrading Fission from previous version:

1. Before you proceed with install in the cluster, please apply CRD from the master branch. From Fission main directory:

```
kubectl apply -f crds/v1/
```

2. You also need to apply the SA for fetcher as this is a new permission added in this release. From Fission main directory:

```
kubectl apply -f fetcher-pod-sa.yaml
```

3. Now upgrade Fission with the images overridden from build:

```
helm upgrade fission --namespace fission --set mqt_keda.enabled=true --set fetcher.image=vishalbiyani/fetcher --set fetcher.imageTag=wsrpp --set image=vishalbiyani/fission --set imageTag=wsrpp --set preUpgradeChecksImage=vishalbiyani/preupgradechecks --set prometheus.enabaled=false https://github.com/fission/fission/releases/download/1.12.0/fission-core-1.12.0.tgz

```

4. Download latest CLI from https://www.dropbox.com/s/wxq7dodg1wl3hu2/fission?dl=0 and use it.

Now you are good to use the WebSocket and RequestPerPod features. Instructions below

## WebSockets

- At the moment only NodeJS env has support for WebSocket and image you will have to use is vishalbiyani/node-env:ws 

- You can find example of a websocket in this repo: https://github.com/fission/examples/tree/master/samples/websocket

## RequestPerPod

- This feature enables running more than one request in same specialised pod and does not specialse additional ones (Though there is an open issue that suddenly if requests are fired, there will be some additional specialisations)

- You will have to use -rpp flag to indicate how many requests you want to send to same pod.

