streams-manifests/kafka-resources/readme.md

67 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

# Kustomize and Kubernetes Commands
## Generate and Apply Manifests
To build a Kubernetes manifest using Kustomize and apply it to the `kafka` namespace:
```bash
kustomize build overlay/test/ > manifest.yaml | kubectl kustomize overlay/test/ > manifest.yaml
kubectl -n kafka apply -f manifest.yaml
```
## Viewing the Kustomize Directory
You can view the configuration for a Kustomize directory as follows:
```bash
kubectl kustomize argo-cd-work/base/kafka-core
```
---
## Kustomize Documentation
For detailed documentation on Kustomization, visit: [Kustomize Documentation](https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/)
---
2025-01-28 09:47:38 +01:00
## Applying Overlays
To apply a specific overlay (e.g., `dev`), first build the configuration and apply it to the `kafka` namespace:
```bash
kustomize build overlay/dev/ > dev.yml
kubectl -n kafka apply -f dev.yml
```
---
2025-01-28 09:47:38 +01:00
## Preparing for Kafka Connect
Before setting up Kafka Connect, ensure the following steps are completed:
1. **Create a Docker Image**
Build and push the Docker image required for Kafka Connect.
2. **Create Docker Secrets for Authentication**
Generate secrets for S3 login or other credentials.
3. **Create Platform and S3 Credentials**
Create the following Kubernetes secrets for authentication:
- `docker-platform-creds`
- `s3-minio-creds`
Verify the secrets are present in the `kafka` namespace:
```bash
kubectl -n kafka get secrets
```
Example output:
```plaintext
NAME TYPE DATA AGE
docker-platform-creds kubernetes.io/dockerconfigjson 1 15d
s3-minio-creds Opaque 2 13d
```