82ed0eb10b
- Redpanda single-node StatefulSet in platform namespace - wp-coordinator deployment consuming wp.deploy topic - RBAC for coordinator to exec into harmonic-wordpress pods - R2 credentials via ExternalSecret (no SSH key needed on coordinator) - Sites config as ConfigMap — add new WP sites without code changes
82 lines
2.0 KiB
YAML
82 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: redpanda
|
|
namespace: platform
|
|
labels:
|
|
app: redpanda
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: redpanda
|
|
serviceName: redpanda
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: redpanda
|
|
spec:
|
|
containers:
|
|
- name: redpanda
|
|
image: docker.redpanda.com/redpandadata/redpanda:latest
|
|
command:
|
|
- rpk
|
|
- redpanda
|
|
- start
|
|
- --smp=1
|
|
- --memory=512M
|
|
- --reserve-memory=0M
|
|
- --overprovisioned
|
|
- --kafka-addr=PLAINTEXT://0.0.0.0:9092
|
|
- --advertise-kafka-addr=PLAINTEXT://redpanda.platform.svc.cluster.local:9092
|
|
- --pandaproxy-addr=0.0.0.0:8082
|
|
- --advertise-pandaproxy-addr=redpanda.platform.svc.cluster.local:8082
|
|
- --set=redpanda.enable_transactions=true
|
|
- --set=redpanda.enable_idempotence=true
|
|
ports:
|
|
- name: kafka
|
|
containerPort: 9092
|
|
- name: admin
|
|
containerPort: 9644
|
|
- name: proxy
|
|
containerPort: 8082
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /var/lib/redpanda/data
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 100m
|
|
limits:
|
|
memory: 1Gi
|
|
cpu: 500m
|
|
readinessProbe:
|
|
exec:
|
|
command: ["rpk", "cluster", "info", "--brokers=localhost:9092"]
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: redpanda-data
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: redpanda
|
|
namespace: platform
|
|
spec:
|
|
selector:
|
|
app: redpanda
|
|
ports:
|
|
- name: kafka
|
|
port: 9092
|
|
targetPort: 9092
|
|
- name: admin
|
|
port: 9644
|
|
targetPort: 9644
|
|
- name: proxy
|
|
port: 8082
|
|
targetPort: 8082
|
|
type: ClusterIP
|