diff options
Diffstat (limited to '50kafka.yml')
-rw-r--r-- | 50kafka.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/50kafka.yml b/50kafka.yml new file mode 100644 index 0000000..788d916 --- /dev/null +++ b/50kafka.yml @@ -0,0 +1,40 @@ +apiVersion: apps/v1alpha1 +kind: PetSet +metadata: + name: kafka +spec: + serviceName: "broker" + replicas: 3 + template: + metadata: + labels: + app: kafka + annotations: + pod.alpha.kubernetes.io/initialized: "true" + pod.alpha.kubernetes.io/init-containers: '[ + ]' + spec: + containers: + - name: broker + image: solsson/kafka:0.10.0.1 + ports: + - containerPort: 9092 + volumeMounts: + - name: datadir + mountPath: /opt/kafka/data + # - name: conf + # mountPath: /opt/kafka/config/server.properties + #volumes: + #- name: conf + # configMap: + # name: conf-d + volumeClaimTemplates: + - metadata: + name: datadir + annotations: + volume.alpha.kubernetes.io/storage-class: anything + spec: + accessModes: [ "ReadWriteOnce" ] + resources: + requests: + storage: 100Mi |