Skip to content

Commit

Permalink
Adding additional openfaas installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewinne committed Nov 9, 2020
1 parent 4732ca5 commit cf5a0ad
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@

+ Have OpenFaas installed: For example you can use `arkade` to easy install it on your k8s cluster.
```
arkade install openfaas --set=gateway.upstreamTimeout=295s --set=gateway.readTimeout=300s --set=gateway.writeTimeout=300s
arkade install openfaas \
--set=gateway.upstreamTimeout=295s \
--set=gateway.readTimeout=300s \
--set=gateway.writeTimeout=300s \
--set=faasnetes.readinessProbe.timeoutSeconds=2 \
--set=faasnetes.livenessProbe.timeoutSeconds=2 \
--clusterrole
```
+ Notice the increase in timeouts, as many CLI scripts take longer.
+ Notice the increase in timeouts, as many CLI scripts take longer.
+ Run your functions in your own "sandbox" namespace. See [Openfaas namespaces](https://docs.openfaas.com/reference/namespaces/):
+ Run `kubectl annotate <your-namespace> openfaas="1"`.
+ Run `kubectl apply -f installation/networkpolicy-allow-ingress-from-openfaas.yaml --namespace <your-namespace>`

## Usage

Expand Down
13 changes: 13 additions & 0 deletions installation/networkpolicy-allow-ingress-from-openfaas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-ingress-from-openfaas
spec:
policyTypes:
- Ingress
podSelector: {}
ingress:
- from:
- namespaceSelector:
matchLabels:
role: openfaas-system

0 comments on commit cf5a0ad

Please sign in to comment.