1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-01 13:48:56 +08:00

45 lines
859 B
YAML

apiVersion: v1
kind: Service
metadata:
name: mainflux-nginx
labels:
app: nginx
spec:
type: LoadBalancer
ports:
- port: 80
name: http
- port: 443
name: https
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: maiflux-nginx
image: nginx:1.14-alpine
ports:
- containerPort: 80
- containerPort: 443
volumeMounts:
- mountPath: /etc/nginx/ssl
name: secret-volume
- mountPath: /etc/nginx/conf.d
name: configmap-volume