Kubernetes Deployment
Prerequisites
- Kubernetes cluster 1.19+
- kubectl configured
- Helm 3.0+ (optional)
Basic Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: maps-messaging
spec:
replicas: 3
selector:
matchLabels:
app: maps-messaging
template:
metadata:
labels:
app: maps-messaging
spec:
containers:
- name: maps-messaging
image: mapsmessaging/maps-messaging:latest
ports:
- containerPort: 1883
- containerPort: 5672
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "1000m"