Skip to content

Instantly share code, notes, and snippets.

@Schm1tz1
Last active October 21, 2022 11:20
Show Gist options
  • Save Schm1tz1/a10ba7616bb3733d240b6351aa23a185 to your computer and use it in GitHub Desktop.
Save Schm1tz1/a10ba7616bb3733d240b6351aa23a185 to your computer and use it in GitHub Desktop.
Useful k8s tool pods for testing
apiVersion: v1
kind: ConfigMap
metadata:
name: kcat-config
namespace: confluent
data:
kcat.conf: |
bootstrap.servers=kafka.confluent.svc.cluster.local:9092
security.protocol=SASL_PLAINTEXT
sasl.mechanisms=PLAIN
sasl.username=kafka
sasl.password=kafka123
---
apiVersion: v1
kind: Pod
metadata:
name: kcat
namespace: confluent
spec:
containers:
- name: cp-kcat
image: confluentinc/cp-kcat:7.2.2
command: ['sh', '-c', 'kcat -F /mnt/kcat.conf -L']
# command: ['sh', '-c', 'tail -f /dev/null']
volumeMounts:
- name: kcat-config
mountPath: /mnt
readOnly: true
volumes:
- name: kcat-config
configMap:
name: kcat-config
restartPolicy: Never
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment