mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-11 19:29:16 +08:00
41 lines
772 B
YAML
41 lines
772 B
YAML
apiVersion: apps/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: http-adapter
|
|
labels:
|
|
component: http-adapter
|
|
spec:
|
|
replicas: 3
|
|
template:
|
|
metadata:
|
|
labels:
|
|
component: http-adapter
|
|
spec:
|
|
containers:
|
|
- name: mainflux-http
|
|
image: mainflux/http:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8185
|
|
env:
|
|
- name: MF_THINGS_URL
|
|
value: "things:8183"
|
|
- name: MF_NATS_URL
|
|
value: "nats://nats:4222"
|
|
- name: MF_HTTP_ADAPTER_PORT
|
|
value: "8185"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: http-adapter
|
|
labels:
|
|
component: http-adapter
|
|
spec:
|
|
selector:
|
|
component: http-adapter
|
|
ports:
|
|
- port: 8185
|
|
type: LoadBalancer
|
|
|