This makes set up easier for new users. Users can still set FISSION_NAMESPACE but it will default to "fission". Users can also still set KUBECONFIG, but it will default to $HOME/.kube/config. Also, update the post-install chart notes.txt and the install guide to use "fission function test" as the first step after install. This means that if there's anything wrong with the setup, the user will see useful errors instead of "internal server error". Also, they can test their setup without worrying about nodeports or ingresses or whatever. All existing functionality of FISSION_URL and FISSION_ROUTER continues to work.
55 lines
1008 B
YAML
55 lines
1008 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: router
|
|
labels:
|
|
svc: router
|
|
application: fission-router
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
spec:
|
|
type: {{ .Values.routerServiceType }}
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8888
|
|
{{ if eq .Values.routerServiceType "NodePort" }}
|
|
nodePort: {{ .Values.routerPort }}
|
|
{{ end }}
|
|
selector:
|
|
svc: router
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: controller
|
|
labels:
|
|
svc: controller
|
|
application: fission-api
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
spec:
|
|
type: {{ .Values.serviceType }}
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8888
|
|
{{ if eq .Values.serviceType "NodePort" }}
|
|
nodePort: {{ .Values.controllerPort }}
|
|
{{ end }}
|
|
selector:
|
|
svc: controller
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: storagesvc
|
|
labels:
|
|
svc: storagesvc
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8000
|
|
selector:
|
|
svc: storagesvc
|