Skip to content

Commit b467eee

Browse files
committed
Quota client image
1 parent a4f6b67 commit b467eee

File tree

6 files changed

+63
-0
lines changed

6 files changed

+63
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: platform.confluent.io/v1beta1
2+
kind: KafkaTopic
3+
metadata:
4+
name: oso-clusterlink-demo
5+
spec:
6+
replicas: 3
7+
partitionCount: 4
8+
configs:
9+
cleanup.policy: "delete"
10+
kafkaRestClassRef:
11+
name: production-kafka-rest

stable/quotas/docker/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM rockylinux/rockylinux:8.5
2+
3+
ENV container docker
4+
5+
# 1. Adding Confluent repository
6+
RUN rpm --import https://packages.confluent.io/rpm/7.1/archive.key
7+
COPY confluent.repo /etc/yum.repos.d/confluent.repo
8+
RUN yum clean all
9+
10+
# 2. Install Confluent Kafka stack
11+
RUN yum install -y java-1.8.0-openjdk
12+
RUN yum install -y confluent-kafka
13+
14+
# 3. Install JY YAML parser for shell
15+
RUN yum install -y jq
16+
RUN curl -L -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/`curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | jq .tag_name | sed 's/"//g'`/yq_linux_amd64
17+
RUN chmod 755 /usr/local/bin/yq
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
eval $(minikube docker-env)
3+
docker build -t sandbox-kafka-client .
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Confluent]
2+
name=Confluent repository
3+
baseurl=https://packages.confluent.io/rpm/7.1
4+
gpgcheck=1
5+
gpgkey=https://packages.confluent.io/rpm/7.1/archive.key
6+
enabled=1
7+
8+
[Confluent-Clients]
9+
name=Confluent Clients repository
10+
baseurl=https://packages.confluent.io/clients/rpm/centos/$releasever/$basearch
11+
gpgcheck=1
12+
gpgkey=https://packages.confluent.io/clients/rpm/archive.key
13+
enabled=1

stable/quotas/kustomization.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
namespace: sandbox
4+
resources:
5+
- namespace.yaml
6+
- ../../base/cfk-components/confluent-no-auth-tls
7+
- ./schema-config.yaml
8+
- ./schema.yaml
9+
10+
configMapGenerator:
11+
- name: oso-schema-config
12+
files:
13+
- schema=new_customer.avsc
14+
options:
15+
disableNameSuffixHash: true

stable/quotas/namespace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: sandbox

0 commit comments

Comments
 (0)