redpanda.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ---
  2. # Copyright Materialize, Inc. and contributors. All rights reserved.
  3. #
  4. # Use of this software is governed by the Business Source License
  5. # included in the LICENSE file at the root of this repository.
  6. #
  7. # As of the Change Date specified in that file, in accordance with
  8. # the Business Source License, use of this software will be governed
  9. # by the Apache License, Version 2.0.
  10. apiVersion: apps/v1
  11. kind: Deployment
  12. metadata:
  13. name: redpanda
  14. namespace: materialize
  15. spec:
  16. replicas: 1
  17. selector:
  18. matchLabels:
  19. app: redpanda
  20. template:
  21. metadata:
  22. labels:
  23. app: redpanda
  24. spec:
  25. containers:
  26. - name: redpanda
  27. image: docker.vectorized.io/vectorized/redpanda:v23.3.5
  28. command: ["/usr/bin/rpk"]
  29. args: [
  30. "redpanda",
  31. "start",
  32. "--overprovisioned",
  33. "--smp", "1",
  34. "--memory", "1G",
  35. "--reserve-memory", "0M",
  36. "--node-id", "0",
  37. "--check=false",
  38. "--kafka-addr", "0.0.0.0:9092",
  39. "--advertise-kafka-addr", "redpanda.materialize.svc.cluster.local:9092",
  40. "--pandaproxy-addr", "0.0.0.0:8082",
  41. "--advertise-pandaproxy-addr", "redpanda.materialize.svc.cluster.local:8082",
  42. "--set", "redpanda.enable_transactions=true",
  43. "--set", "redpanda.enable_idempotence=true",
  44. "--set", "redpanda.auto_create_topics_enabled=true",
  45. "--set", "redpanda.default_topic_partitions=1"
  46. ]
  47. ports:
  48. - containerPort: 9092
  49. - containerPort: 8081
  50. - containerPort: 8082
  51. livenessProbe:
  52. httpGet:
  53. path: /v1/status/ready
  54. port: 9644
  55. initialDelaySeconds: 30
  56. periodSeconds: 10
  57. ---
  58. apiVersion: v1
  59. kind: Service
  60. metadata:
  61. name: redpanda
  62. namespace: materialize
  63. spec:
  64. selector:
  65. app: redpanda
  66. ports:
  67. - name: kafka
  68. protocol: TCP
  69. port: 9092
  70. targetPort: 9092
  71. - name: pandaproxy
  72. protocol: TCP
  73. port: 8082
  74. targetPort: 8082