48 lines
947 B
YAML
48 lines
947 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: mainflux-nginx
|
||
|
labels:
|
||
|
app: nginx
|
||
|
spec:
|
||
|
type: LoadBalancer
|
||
|
ports:
|
||
|
- port: 80
|
||
|
protocol: TCP
|
||
|
name: http
|
||
|
- port: 443
|
||
|
protocol: TCP
|
||
|
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: ymqytw/nginxhttps:1.5
|
||
|
command: ["/home/auto-reload-nginx.sh"]
|
||
|
ports:
|
||
|
- containerPort: 443
|
||
|
- containerPort: 80
|
||
|
volumeMounts:
|
||
|
- mountPath: /etc/nginx/ssl
|
||
|
name: secret-volume
|
||
|
- mountPath: /etc/nginx/conf.d
|
||
|
name: configmap-volume
|