Merge pull request #34 from johscheuer/update-readme

Add minikube example in readme; split fission.yaml into core + one for LoadBalancer services and another for NodePort services.
This commit is contained in:
Soam Vasani
2016-11-29 20:52:53 -08:00
committed by GitHub
4 changed files with 96 additions and 40 deletions
+30 -4
View File
@@ -82,7 +82,6 @@ You can install Kubernetes on your laptop with minikube: https://github.com/kube
Or, you can use Google Container Engine's free trial to get a 3 node cluster. Or, you can use Google Container Engine's free trial to get a 3 node cluster.
### Verify access to the cluster ### Verify access to the cluster
``` ```
@@ -91,18 +90,45 @@ Or, you can use Google Container Engine's free trial to get a 3 node cluster.
### Get and Run Fission ### Get and Run Fission
If you're using GKE, use the fission.yaml unmodified. If you're using Deploy the fission services and deployments.
minikube, change all instances of LoadBalancer services to NodePort.
``` ```
$ kubectl create -f http://fission.io/fission.yaml $ kubectl create -f http://fission.io/fission.yaml
```
#### local and no cloud provider
If you're using minikube or no cloud provider use the services with NodePort.
```
$ kubectl create -f http://fission.io/fission-nodeport.yaml
```
#### Cloud
If you're using GKE or any other cloud provider, use the services with a LoadBalancer.
```
$ kubectl create -f http://fission.io/fission-cloud.yaml
```
### Set fission URLs
```
$ kubectl --namespace fission get services $ kubectl --namespace fission get services
``` ```
Save the external IP addresses of controller and router services in Save the external IP addresses of controller and router services in
FISSION_URL and FISSION_ROUTER, respectively. FISSION_URL is used by FISSION_URL and FISSION_ROUTER, respectively. FISSION_URL is used by
the fission CLI to find the server. (FISSION_ROUTER is only needed the fission CLI to find the server. (FISSION_ROUTER is only needed
for the examples below to work.) for the examples below to work.) Below is an example
for Minikube with NodePort.
```
$ export FISSION_ROUTER=$(minikube ip):31314
$ export FISSION_URL=http://$(minikube ip):31313
```
### Install the client CLI ### Install the client CLI
+32
View File
@@ -0,0 +1,32 @@
apiVersion: v1
kind: Service
metadata:
name: router
namespace: fission
labels:
svc: router
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8888
nodePort: 31314
selector:
svc: router
---
apiVersion: v1
kind: Service
metadata:
name: controller
namespace: fission
labels:
svc: controller
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8888
nodePort: 31313
selector:
svc: controller
+32
View File
@@ -0,0 +1,32 @@
apiVersion: v1
kind: Service
metadata:
name: router
namespace: fission
labels:
svc: router
spec:
type: NodePort
ports:
- port: 80
targetPort: 8888
nodePort: 31314
selector:
svc: router
---
apiVersion: v1
kind: Service
metadata:
name: controller
namespace: fission
labels:
svc: controller
spec:
type: NodePort
ports:
- port: 80
targetPort: 8888
nodePort: 31313
selector:
svc: controller
-34
View File
@@ -13,23 +13,6 @@ metadata:
labels: labels:
name: fission-function name: fission-function
---
apiVersion: v1
kind: Service
metadata:
name: controller
namespace: fission
labels:
svc: controller
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8888
nodePort: 31313
selector:
svc: controller
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
@@ -49,23 +32,6 @@ spec:
command: ["/fission-bundle"] command: ["/fission-bundle"]
args: ["--controllerPort", "8888", "--filepath", "/filestore"] args: ["--controllerPort", "8888", "--filepath", "/filestore"]
---
apiVersion: v1
kind: Service
metadata:
name: router
namespace: fission
labels:
svc: router
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8888
nodePort: 31314
selector:
svc: router
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment