Functions for GET and POST endpoints. A redis.yaml to deploy redis on kubernetes. And a deploy.sh to deploy the fission functions with routes.
46 lines
628 B
YAML
46 lines
628 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: guestbook
|
|
labels:
|
|
name: guestbook
|
|
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
run: redis
|
|
name: redis
|
|
namespace: guestbook
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
run: redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
run: redis
|
|
spec:
|
|
containers:
|
|
- image: redis
|
|
name: redis
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
run: redis
|
|
name: redis
|
|
namespace: guestbook
|
|
spec:
|
|
selector:
|
|
run: redis
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 6379
|
|
protocol: TCP
|
|
targetPort: 6379
|