File tree Expand file tree Collapse file tree 15 files changed +214
-0
lines changed Expand file tree Collapse file tree 15 files changed +214
-0
lines changed Original file line number Diff line number Diff line change 1+ # Using Confluent CLI with CFK
2+ This example deploys a basic deployment. No RBAC/LDAP. Just a single topic 'foobar' is added as part of the pipeline.
3+
4+ ### Deploy CRDs
5+ Deploy the CRDS using the standard way:
6+ ``` shell
7+ cd examples/confluent-cli
8+ kubectl apply -k ../../kustomize/crds
9+ ```
10+
11+ ### Deploy Confluent Operator and Confluent Services
12+ Deploy the confluent operator and services:
13+ ``` shell
14+ kubectl apply -k .
15+ ```
16+
17+ ### Using the proxy without MDS
18+ You need to run the following commands:
19+ ``` shell
20+ $ kubectl port-forward -n tools proxy 9100:9100
21+
22+ export HTTPS_PROXY=socks5://127.0.0.1:9100
23+
24+ KAFKA_ID=$( curl -x socks5h://127.0.0.1:9100 -ks https://kafka.sandbox.svc.cluster.local:8090/v1/metadata/id | jq -r ' .scope.clusters["kafka-cluster"]' )
25+
26+ CONFLUENT_USERNAME=kafka \
27+ CONFLUENT_PASSWORD=kafka-secret \
28+ confluent login
29+
30+ ```
31+
32+ ### Using the proxy with MDS / RBAC
33+ You will need to run some extra commands:
34+ ``` shell
35+ export HTTPS_PROXY=socks5://127.0.0.1:9100
36+
37+ KAFKA_ID=$( curl -x socks5h://127.0.0.1:9100 -ks https://kafka.sandbox.svc.cluster.local:8090/v1/metadata/id | jq -r ' .scope.clusters["kafka-cluster"]' )
38+
39+ CONFLUENT_USERNAME=kafka \
40+ CONFLUENT_PASSWORD=kafka-secret \
41+ CONFLUENT_MDS_URL=https://kafka.sandbox.svc.cluster.local:8090 \
42+ CONFLUENT_CA_CERT_PATH=../certificates/rootca.pem \ # pull from tls-group1 secret
43+ confluent login
44+ ```
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : platform.confluent.io/v1beta1
3+ kind : ControlCenter
4+ metadata :
5+ name : controlcenter
6+ spec :
7+ tls :
8+ autoGeneratedCerts : true
9+ dependencies :
10+ kafka :
11+ bootstrapEndpoint : kafka.sandbox.svc.cluster.local:9071
12+ tls :
13+ enabled : true
14+ connect :
15+ - name : connect
16+ url : https://connect.sandbox.svc.cluster.local:8083
17+ tls :
18+ enabled : true
19+ ksqldb :
20+ - name : ksqldb
21+ url : https://ksqldb.sandbox.svc.cluster.local:8088
22+ tls :
23+ enabled : true
24+ schemaRegistry :
25+ url : https://schemaregistry.sandbox.svc.cluster.local:8081
26+ tls :
27+ enabled : true
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : platform.confluent.io/v1beta1
3+ kind : Connect
4+ metadata :
5+ name : connect
6+ spec :
7+ tls :
8+ autoGeneratedCerts : true
9+ dependencies :
10+ kafka :
11+ bootstrapEndpoint : kafka.sandbox.svc.cluster.local:9071
12+ tls :
13+ enabled : true
14+
Original file line number Diff line number Diff line change 1+ apiVersion : platform.confluent.io/v1beta1
2+ kind : Kafka
3+ metadata :
4+ name : kafka
5+ spec :
6+ configOverrides :
7+ server :
8+ - confluent.schema.registry.url=https://schemaregistry.sandbox.svc.cluster.local:8081
9+ tls :
10+ autoGeneratedCerts : true
11+ listeners :
12+ internal :
13+ tls :
14+ enabled : true
15+ external :
16+ tls :
17+ enabled : true
18+ dependencies :
19+ zookeeper :
20+ endpoint : zookeeper.sandbox.svc.cluster.local:2182
21+ tls :
22+ enabled : true
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : platform.confluent.io/v1beta1
3+ kind : KsqlDB
4+ metadata :
5+ name : ksqldb
6+ spec :
7+ tls :
8+ autoGeneratedCerts : true
9+ dependencies :
10+ kafka :
11+ bootstrapEndpoint : kafka.sandbox.svc.cluster.local:9071
12+ tls :
13+ enabled : true
Original file line number Diff line number Diff line change 1+ namespace : sandbox
2+ resources :
3+ - namespace.yaml
4+ - ../../../kustomize/base/confluent
5+ - ../../../kustomize/base/secrets-tls
6+ patchesStrategicMerge :
7+ - zookeeper.yaml
8+ - kafka.yaml
9+ - control-centre.yaml
10+ - kafka-connect.yaml
11+ - ksqldb.yaml
12+ - schema-registry.yaml
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Namespace
3+ metadata :
4+ name : sandbox
Original file line number Diff line number Diff line change 1+ apiVersion : platform.confluent.io/v1beta1
2+ kind : SchemaRegistry
3+ metadata :
4+ name : schemaregistry
5+ spec :
6+ tls :
7+ autoGeneratedCerts : true
8+ dependencies :
9+ kafka :
10+ bootstrapEndpoint : kafka.sandbox.svc.cluster.local:9071
11+ tls :
12+ enabled : true
Original file line number Diff line number Diff line change 1+ apiVersion : platform.confluent.io/v1beta1
2+ kind : Zookeeper
3+ metadata :
4+ name : zookeeper
5+ spec :
6+ tls :
7+ autoGeneratedCerts : true
Original file line number Diff line number Diff line change 1+ namespace : sandbox
2+ resources :
3+ - confluent
4+ - operator
5+ - topics
6+ - proxy.yaml
You can’t perform that action at this time.
0 commit comments