mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00

* Fix nginx configuration for kubernetes Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add dashflux to nginx configuration Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Update kubernetes documentation Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Update soft links paths to relative Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: mainflux-nginx
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
type: LoadBalancer
|
|
ports:
|
|
- port: 80
|
|
name: http
|
|
- port: 443
|
|
name: https
|
|
- port: 8883
|
|
name: mqtt
|
|
selector:
|
|
app: nginx
|
|
---
|
|
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: mainflux-nginx
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
volumes:
|
|
- name: secret-volume
|
|
secret:
|
|
secretName: mainflux-secret
|
|
- name: configmap-volume
|
|
configMap:
|
|
name: mainflux-nginx-config
|
|
containers:
|
|
- name: mainflux-nginx
|
|
image: nginx:1.13-alpine
|
|
ports:
|
|
- containerPort: 80
|
|
- containerPort: 443
|
|
- containerPort: 8883
|
|
volumeMounts:
|
|
- mountPath: /etc/ssl/certs/mainflux-server.crt
|
|
name: secret-volume
|
|
subPath: mainflux-server.crt
|
|
- mountPath: /etc/ssl/private/mainflux-server.key
|
|
name: secret-volume
|
|
subPath: mainflux-server.key
|
|
- mountPath: /etc/ssl/certs/dhparam.pem
|
|
name: secret-volume
|
|
subPath: dhparam.pem
|
|
- mountPath: /etc/nginx/nginx.conf
|
|
name: configmap-volume
|
|
subPath: nginx.conf
|