SlideShare a Scribd company logo
1 of 9
Download to read offline
Cluster Info:
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get pods
No resources found.
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get ns
NAME STATUS AGE
default Active 7m
kube-public Active 7m
kube-system Active 7m
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
gke-kafka-standard-clust-default-pool-028d284a-43rh Ready <none> 7m v1.10.9-gke.5
gke-kafka-standard-clust-default-pool-028d284a-6s6h Ready <none> 7m v1.10.9-gke.5
gke-kafka-standard-clust-default-pool-028d284a-n8l1 Ready <none> 7m v1.10.9-gke.5
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get pods --all-
namespacesNAMESPACE NAME READY STATUS RESTARTS AGEkube-system event-exporter-v0.2.3-
54f94754f4-xch4l 2/2 Running 0 16mkube-system fluentd-gcp-scaler-6d7bbc67c5-h7m5c 1/1 Running 0
16mkube-system fluentd-gcp-v3.1.0-c2g4r 2/2 Running 0 15mkube-system fluentd-gcp-v3.1.0-kskkc 2/2
Running 0 15mkube-system fluentd-gcp-v3.1.0-wn2lh 2/2 Running 0 15mkube-system heapster-v1.5.3-
789c467788-skx7d 3/3 Running 0 15mkube-system kube-dns-788979dc8f-kp5rx 4/4 Running 0
16mkube-system kube-dns-788979dc8f-zkl22 4/4 Running 0 15mkube-system kube-dns-autoscaler-
79b4b844b9-ffq6p 1/1 Running 0 16mkube-system kube-proxy-gke-kafka-standard-clust-default-pool-
028d284a-43rh 1/1 Running 0 16mkube-system kube-proxy-gke-kafka-standard-clust-default-pool-
028d284a-6s6h 1/1 Running 0 16mkube-system kube-proxy-gke-kafka-standard-clust-default-pool-
028d284a-n8l1 1/1 Running 0 16mkube-system kubernetes-dashboard-598d75cb96-v25wp 1/1 Running
0 16mkube-system l7-default-backend-5d5b9874d5-pjdhh 1/1 Running 0 16mkube-system metrics-
server-v0.2.1-7486f5bd67-7qwsp 2/2 Running 0 15mkube-system tiller-deploy-7995854f67-gl2cj 1/1
Running 0 10m
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
Installing helm:
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ curl
https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left
Speed
100 7236 100 7236 0 0 46247 0 --:--:-- --:--:-- --:--:-- 46384
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ chmod 700 get_helm.sh
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ ./get_helm.sh
Downloading https://kubernetes-helm.storage.googleapis.com/helm-v2.12.3-linux-amd64.tar.gz
Preparing to install helm and tiller into /usr/local/bin
helm installed into /usr/local/bin/helm
tiller installed into /usr/local/bin/tiller
Run 'helm init' to configure helm.
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm init
Creating /home/ahmedmekawy/.helm
Creating /home/ahmedmekawy/.helm/repositoryCreating
/home/ahmedmekawy/.helm/repository/cacheCreating
/home/ahmedmekawy/.helm/repository/localCreating
/home/ahmedmekawy/.helm/pluginsCreating
/home/ahmedmekawy/.helm/startersCreating
/home/ahmedmekawy/.helm/cache/archiveCreating
/home/ahmedmekawy/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /home/ahmedmekawy/.helm.Tiller (the Helm server-side
component) has been installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.To
prevent this, run `helm init` with the --tiller-tls-verify flag.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-
your-helm-installation
Happy Helming!
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm version
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e",
GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.3",GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e",
GitTreeState:"clean"}
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
Creating and Configuring StorageClass:
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ cat storage.yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: kafka-sc
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
allowVolumeExpansion: true
parameters:
type: pd-standard
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl create –f storage.yaml
storageclass.storage.k8s.io "kafka-sc" created
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get sc
NAME PROVISIONER AGE
kafka-sc kubernetes.io/gce-pd 8m
standard (default) kubernetes.io/gce-pd 20m
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
The StorageClass that was created can be specified
in dataLogDirStorageClass and dataDirStorageClass under cp-zookeeper and in storageClass under cp-
kafka in values.yaml.
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ grep -i storage values.yaml
dataDirStorageClass: kafka-sc
dataLogDirStorageClass: kafka-sc
storageClass: kafka-sc
Installing Kaka confluent chart:
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm repo list
NAME URL
stable https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879/charts
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm repo add confluent
https://confluentinc.github.io/cp-helm-charts/
"confluent" has been added to your repositories
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "confluent" chart repository
...Successfully got an update from the "stable" chart repositoryUpdate
Complete. ⎈ Happy Helming!⎈
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm search confl
NAME CHART VERSION APP VERSION DESCRIPTION
confluent/cp-helm-charts 0.1.0 1.0 A Helm chart for Confluent Open Source
stable/schema-registry-ui 0.2.1 v0.9.4 This is a web tool for the confluentinc/schema-registry i...
ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
Installation Logs:
Presitence Disk Claims:
Installation Verification:
ahmedmekawy@cloudshell:~ (essential-rider-208218)$ helm test my-confluent-oss
RUNNING: my-confluent-oss-canary
PASSED: my-confluent-oss-canary
Staring Producer:
ahmedmekawy@cloudshell:~ (essential-rider-208218)$ kubectl exec -c cp-kafka-broker -it my-
confluent-oss-cp-kafka-0 -- /bin/bash /usr/bin/kafka-console-producer --broker-list localhost:9092 --
topic test
>hello from producer
[2019-01-23 08:52:45,848] WARN [Producer clientId=console-producer] Error while fetching metadata
with correlation id 1 : {test=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
>this is 2n producer message>
Staring Consumer:
>ahmedmekawy@cloudshell:~ (essential-rider-208218)$ kubectl exec -c cp-kafka-broker -it my-
confluent-oss-cp-kafka-0 -- /bin/bash /usr/bin/kafka-console-consumer -bootstrap-server localhost:9092
--topic test --from-beginning
hello from producer
this is 2n producer message
Congratulation Kafka Confluent is installed successfully 
Reference:
https://docs.confluent.io/current/installation/installing_cp/cp-helm-charts/docs/index.html

More Related Content

What's hot

Web deploy command line
Web deploy command lineWeb deploy command line
Web deploy command lineLarry Nung
 
Spring Into Kubernetes DFW
Spring Into Kubernetes DFWSpring Into Kubernetes DFW
Spring Into Kubernetes DFWVMware Tanzu
 
Mysql Fun
Mysql FunMysql Fun
Mysql FunSHC
 
Design & Performance - Steve Souders at Fastly Altitude 2015
Design & Performance - Steve Souders at Fastly Altitude 2015Design & Performance - Steve Souders at Fastly Altitude 2015
Design & Performance - Steve Souders at Fastly Altitude 2015Fastly
 
Administering and Monitoring SolrCloud Clusters
Administering and Monitoring SolrCloud ClustersAdministering and Monitoring SolrCloud Clusters
Administering and Monitoring SolrCloud ClustersSematext Group, Inc.
 
What\'s new in Rails 2.1
What\'s new in Rails 2.1What\'s new in Rails 2.1
What\'s new in Rails 2.1Keith Pitty
 
Alfrescotomcat stderr.2013-03-05
Alfrescotomcat stderr.2013-03-05Alfrescotomcat stderr.2013-03-05
Alfrescotomcat stderr.2013-03-05NX21
 
Catalina.2013 03-05
Catalina.2013 03-05Catalina.2013 03-05
Catalina.2013 03-05NX21
 
Rally - Benchmarking_as_a_service - Openstack meetup
Rally - Benchmarking_as_a_service - Openstack meetupRally - Benchmarking_as_a_service - Openstack meetup
Rally - Benchmarking_as_a_service - Openstack meetupAnanth Padmanabhan
 
Hadoop sqoop2 server setup and application integration
Hadoop   sqoop2 server setup and application integrationHadoop   sqoop2 server setup and application integration
Hadoop sqoop2 server setup and application integrationRajasekaran kandhasamy
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021Frederic Descamps
 
Squid for Load-Balancing & Cache-Proxy ~ A techXpress Guide
Squid for Load-Balancing & Cache-Proxy ~ A techXpress GuideSquid for Load-Balancing & Cache-Proxy ~ A techXpress Guide
Squid for Load-Balancing & Cache-Proxy ~ A techXpress GuideAbhishek Kumar
 
Deploy Rails Application by Capistrano
Deploy Rails Application by CapistranoDeploy Rails Application by Capistrano
Deploy Rails Application by CapistranoTasawr Interactive
 
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিWordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিFaysal Shahi
 
TerraformとAzureを組み合わせて使うときの勘所
TerraformとAzureを組み合わせて使うときの勘所TerraformとAzureを組み合わせて使うときの勘所
TerraformとAzureを組み合わせて使うときの勘所Kyohei Moriyama
 
Deploying Rails App On Ec2
Deploying Rails App On Ec2Deploying Rails App On Ec2
Deploying Rails App On Ec2Akhil Bansal
 

What's hot (20)

Generators
GeneratorsGenerators
Generators
 
Web deploy command line
Web deploy command lineWeb deploy command line
Web deploy command line
 
Spring Into Kubernetes DFW
Spring Into Kubernetes DFWSpring Into Kubernetes DFW
Spring Into Kubernetes DFW
 
Mysql Fun
Mysql FunMysql Fun
Mysql Fun
 
Web deploy
Web deployWeb deploy
Web deploy
 
Design & Performance - Steve Souders at Fastly Altitude 2015
Design & Performance - Steve Souders at Fastly Altitude 2015Design & Performance - Steve Souders at Fastly Altitude 2015
Design & Performance - Steve Souders at Fastly Altitude 2015
 
Administering and Monitoring SolrCloud Clusters
Administering and Monitoring SolrCloud ClustersAdministering and Monitoring SolrCloud Clusters
Administering and Monitoring SolrCloud Clusters
 
What\'s new in Rails 2.1
What\'s new in Rails 2.1What\'s new in Rails 2.1
What\'s new in Rails 2.1
 
Alfrescotomcat stderr.2013-03-05
Alfrescotomcat stderr.2013-03-05Alfrescotomcat stderr.2013-03-05
Alfrescotomcat stderr.2013-03-05
 
Catalina.2013 03-05
Catalina.2013 03-05Catalina.2013 03-05
Catalina.2013 03-05
 
Reduxing like a pro
Reduxing like a proReduxing like a pro
Reduxing like a pro
 
Rally - Benchmarking_as_a_service - Openstack meetup
Rally - Benchmarking_as_a_service - Openstack meetupRally - Benchmarking_as_a_service - Openstack meetup
Rally - Benchmarking_as_a_service - Openstack meetup
 
Hadoop sqoop2 server setup and application integration
Hadoop   sqoop2 server setup and application integrationHadoop   sqoop2 server setup and application integration
Hadoop sqoop2 server setup and application integration
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021
 
Squid for Load-Balancing & Cache-Proxy ~ A techXpress Guide
Squid for Load-Balancing & Cache-Proxy ~ A techXpress GuideSquid for Load-Balancing & Cache-Proxy ~ A techXpress Guide
Squid for Load-Balancing & Cache-Proxy ~ A techXpress Guide
 
Stackato Presentation Techzone 2013
Stackato Presentation Techzone 2013Stackato Presentation Techzone 2013
Stackato Presentation Techzone 2013
 
Deploy Rails Application by Capistrano
Deploy Rails Application by CapistranoDeploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
 
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিWordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
 
TerraformとAzureを組み合わせて使うときの勘所
TerraformとAzureを組み合わせて使うときの勘所TerraformとAzureを組み合わせて使うときの勘所
TerraformとAzureを組み合わせて使うときの勘所
 
Deploying Rails App On Ec2
Deploying Rails App On Ec2Deploying Rails App On Ec2
Deploying Rails App On Ec2
 

Similar to Kafka Confluent Platform services on Kubernetes

AtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingAtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingSteve Smith
 
Instrumentación de entrega continua con Gitlab
Instrumentación de entrega continua con GitlabInstrumentación de entrega continua con Gitlab
Instrumentación de entrega continua con GitlabSoftware Guru
 
Ports, pods and proxies
Ports, pods and proxiesPorts, pods and proxies
Ports, pods and proxiesLibbySchulze
 
Kubernetes Tutorial
Kubernetes TutorialKubernetes Tutorial
Kubernetes TutorialCi Jie Li
 
Prometheus on NKS
Prometheus on NKSPrometheus on NKS
Prometheus on NKSJo Hoon
 
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017Amazon Web Services Korea
 
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...QCloudMentor
 
dokumen.tips_spring-boot-actuator.pdf
dokumen.tips_spring-boot-actuator.pdfdokumen.tips_spring-boot-actuator.pdf
dokumen.tips_spring-boot-actuator.pdfAppster1
 
Bdc from bare metal to k8s
Bdc   from bare metal to k8sBdc   from bare metal to k8s
Bdc from bare metal to k8sChris Adkin
 
DeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerDeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerSteve Smith
 
DockerCon EU 2018 - Dockerfile Best Practices
DockerCon EU 2018 - Dockerfile Best PracticesDockerCon EU 2018 - Dockerfile Best Practices
DockerCon EU 2018 - Dockerfile Best PracticesTibor Vass
 
DCEU 18: Dockerfile Best Practices
DCEU 18: Dockerfile Best PracticesDCEU 18: Dockerfile Best Practices
DCEU 18: Dockerfile Best PracticesDocker, Inc.
 
DWX 2023 - Schnelles Feedback mit Pull-Request Deployments
DWX 2023 - Schnelles Feedback mit Pull-Request DeploymentsDWX 2023 - Schnelles Feedback mit Pull-Request Deployments
DWX 2023 - Schnelles Feedback mit Pull-Request DeploymentsMarc Müller
 
BASTA Spring 2023 - SCHNELLES FEEDBACK MIT PULL REQUEST DEPLOYMENTS
BASTA Spring 2023 - SCHNELLES FEEDBACK MIT PULL REQUEST DEPLOYMENTSBASTA Spring 2023 - SCHNELLES FEEDBACK MIT PULL REQUEST DEPLOYMENTS
BASTA Spring 2023 - SCHNELLES FEEDBACK MIT PULL REQUEST DEPLOYMENTSMarc Müller
 
Présentation "Docker + Kubernetes" @ Pastis.tech #2
Présentation "Docker + Kubernetes" @ Pastis.tech #2Présentation "Docker + Kubernetes" @ Pastis.tech #2
Présentation "Docker + Kubernetes" @ Pastis.tech #2Blue Forest
 
Spring Boot Actuator
Spring Boot ActuatorSpring Boot Actuator
Spring Boot ActuatorRowell Belen
 
Kubernetes Basic Operation
Kubernetes Basic OperationKubernetes Basic Operation
Kubernetes Basic OperationSimon Su
 

Similar to Kafka Confluent Platform services on Kubernetes (20)

AtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingAtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration training
 
Instrumentación de entrega continua con Gitlab
Instrumentación de entrega continua con GitlabInstrumentación de entrega continua con Gitlab
Instrumentación de entrega continua con Gitlab
 
Ports, pods and proxies
Ports, pods and proxiesPorts, pods and proxies
Ports, pods and proxies
 
kubernetes practice
kubernetes practicekubernetes practice
kubernetes practice
 
Kubernetes Tutorial
Kubernetes TutorialKubernetes Tutorial
Kubernetes Tutorial
 
Prometheus on NKS
Prometheus on NKSPrometheus on NKS
Prometheus on NKS
 
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
 
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
 
dokumen.tips_spring-boot-actuator.pdf
dokumen.tips_spring-boot-actuator.pdfdokumen.tips_spring-boot-actuator.pdf
dokumen.tips_spring-boot-actuator.pdf
 
Bdc from bare metal to k8s
Bdc   from bare metal to k8sBdc   from bare metal to k8s
Bdc from bare metal to k8s
 
K8s Basic
K8s BasicK8s Basic
K8s Basic
 
DeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerDeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to Docker
 
DockerCon EU 2018 - Dockerfile Best Practices
DockerCon EU 2018 - Dockerfile Best PracticesDockerCon EU 2018 - Dockerfile Best Practices
DockerCon EU 2018 - Dockerfile Best Practices
 
DCEU 18: Dockerfile Best Practices
DCEU 18: Dockerfile Best PracticesDCEU 18: Dockerfile Best Practices
DCEU 18: Dockerfile Best Practices
 
DWX 2023 - Schnelles Feedback mit Pull-Request Deployments
DWX 2023 - Schnelles Feedback mit Pull-Request DeploymentsDWX 2023 - Schnelles Feedback mit Pull-Request Deployments
DWX 2023 - Schnelles Feedback mit Pull-Request Deployments
 
BASTA Spring 2023 - SCHNELLES FEEDBACK MIT PULL REQUEST DEPLOYMENTS
BASTA Spring 2023 - SCHNELLES FEEDBACK MIT PULL REQUEST DEPLOYMENTSBASTA Spring 2023 - SCHNELLES FEEDBACK MIT PULL REQUEST DEPLOYMENTS
BASTA Spring 2023 - SCHNELLES FEEDBACK MIT PULL REQUEST DEPLOYMENTS
 
Helm 3
Helm 3Helm 3
Helm 3
 
Présentation "Docker + Kubernetes" @ Pastis.tech #2
Présentation "Docker + Kubernetes" @ Pastis.tech #2Présentation "Docker + Kubernetes" @ Pastis.tech #2
Présentation "Docker + Kubernetes" @ Pastis.tech #2
 
Spring Boot Actuator
Spring Boot ActuatorSpring Boot Actuator
Spring Boot Actuator
 
Kubernetes Basic Operation
Kubernetes Basic OperationKubernetes Basic Operation
Kubernetes Basic Operation
 

More from Ahmed Mekawy

Kubernetes installation
Kubernetes installationKubernetes installation
Kubernetes installationAhmed Mekawy
 
Blockchain fundamentals
Blockchain fundamentalsBlockchain fundamentals
Blockchain fundamentalsAhmed Mekawy
 
Installing spark 2
Installing spark 2Installing spark 2
Installing spark 2Ahmed Mekawy
 
Clouldera Implementation Guide for Production Deployments
Clouldera Implementation Guide for Production DeploymentsClouldera Implementation Guide for Production Deployments
Clouldera Implementation Guide for Production DeploymentsAhmed Mekawy
 
Exadata overview audio
Exadata overview audioExadata overview audio
Exadata overview audioAhmed Mekawy
 

More from Ahmed Mekawy (6)

Oracle linux kube
Oracle linux kubeOracle linux kube
Oracle linux kube
 
Kubernetes installation
Kubernetes installationKubernetes installation
Kubernetes installation
 
Blockchain fundamentals
Blockchain fundamentalsBlockchain fundamentals
Blockchain fundamentals
 
Installing spark 2
Installing spark 2Installing spark 2
Installing spark 2
 
Clouldera Implementation Guide for Production Deployments
Clouldera Implementation Guide for Production DeploymentsClouldera Implementation Guide for Production Deployments
Clouldera Implementation Guide for Production Deployments
 
Exadata overview audio
Exadata overview audioExadata overview audio
Exadata overview audio
 

Recently uploaded

Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 

Kafka Confluent Platform services on Kubernetes

  • 1. Cluster Info: ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get pods No resources found. ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get ns NAME STATUS AGE default Active 7m kube-public Active 7m kube-system Active 7m ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get nodes NAME STATUS ROLES AGE VERSION gke-kafka-standard-clust-default-pool-028d284a-43rh Ready <none> 7m v1.10.9-gke.5 gke-kafka-standard-clust-default-pool-028d284a-6s6h Ready <none> 7m v1.10.9-gke.5 gke-kafka-standard-clust-default-pool-028d284a-n8l1 Ready <none> 7m v1.10.9-gke.5 ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get pods --all- namespacesNAMESPACE NAME READY STATUS RESTARTS AGEkube-system event-exporter-v0.2.3- 54f94754f4-xch4l 2/2 Running 0 16mkube-system fluentd-gcp-scaler-6d7bbc67c5-h7m5c 1/1 Running 0 16mkube-system fluentd-gcp-v3.1.0-c2g4r 2/2 Running 0 15mkube-system fluentd-gcp-v3.1.0-kskkc 2/2 Running 0 15mkube-system fluentd-gcp-v3.1.0-wn2lh 2/2 Running 0 15mkube-system heapster-v1.5.3- 789c467788-skx7d 3/3 Running 0 15mkube-system kube-dns-788979dc8f-kp5rx 4/4 Running 0 16mkube-system kube-dns-788979dc8f-zkl22 4/4 Running 0 15mkube-system kube-dns-autoscaler- 79b4b844b9-ffq6p 1/1 Running 0 16mkube-system kube-proxy-gke-kafka-standard-clust-default-pool- 028d284a-43rh 1/1 Running 0 16mkube-system kube-proxy-gke-kafka-standard-clust-default-pool- 028d284a-6s6h 1/1 Running 0 16mkube-system kube-proxy-gke-kafka-standard-clust-default-pool- 028d284a-n8l1 1/1 Running 0 16mkube-system kubernetes-dashboard-598d75cb96-v25wp 1/1 Running 0 16mkube-system l7-default-backend-5d5b9874d5-pjdhh 1/1 Running 0 16mkube-system metrics- server-v0.2.1-7486f5bd67-7qwsp 2/2 Running 0 15mkube-system tiller-deploy-7995854f67-gl2cj 1/1 Running 0 10m ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
  • 2. Installing helm: ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 7236 100 7236 0 0 46247 0 --:--:-- --:--:-- --:--:-- 46384 ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ chmod 700 get_helm.sh ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ ./get_helm.sh Downloading https://kubernetes-helm.storage.googleapis.com/helm-v2.12.3-linux-amd64.tar.gz Preparing to install helm and tiller into /usr/local/bin helm installed into /usr/local/bin/helm tiller installed into /usr/local/bin/tiller Run 'helm init' to configure helm. ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm init Creating /home/ahmedmekawy/.helm Creating /home/ahmedmekawy/.helm/repositoryCreating /home/ahmedmekawy/.helm/repository/cacheCreating /home/ahmedmekawy/.helm/repository/localCreating /home/ahmedmekawy/.helm/pluginsCreating /home/ahmedmekawy/.helm/startersCreating /home/ahmedmekawy/.helm/cache/archiveCreating /home/ahmedmekawy/.helm/repository/repositories.yaml Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com Adding local repo with URL: http://127.0.0.1:8879/charts $HELM_HOME has been configured at /home/ahmedmekawy/.helm.Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
  • 3. Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.To prevent this, run `helm init` with the --tiller-tls-verify flag. For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing- your-helm-installation Happy Helming! ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm version Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.12.3",GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"} ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ Creating and Configuring StorageClass: ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ cat storage.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: kafka-sc provisioner: kubernetes.io/gce-pd reclaimPolicy: Retain allowVolumeExpansion: true parameters: type: pd-standard ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl create –f storage.yaml storageclass.storage.k8s.io "kafka-sc" created ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ kubectl get sc NAME PROVISIONER AGE kafka-sc kubernetes.io/gce-pd 8m standard (default) kubernetes.io/gce-pd 20m ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
  • 4. The StorageClass that was created can be specified in dataLogDirStorageClass and dataDirStorageClass under cp-zookeeper and in storageClass under cp- kafka in values.yaml. ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ grep -i storage values.yaml dataDirStorageClass: kafka-sc dataLogDirStorageClass: kafka-sc storageClass: kafka-sc Installing Kaka confluent chart: ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm repo list NAME URL stable https://kubernetes-charts.storage.googleapis.com local http://127.0.0.1:8879/charts ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm repo add confluent https://confluentinc.github.io/cp-helm-charts/ "confluent" has been added to your repositories ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm repo update Hang tight while we grab the latest from your chart repositories... ...Skip local chart repository ...Successfully got an update from the "confluent" chart repository ...Successfully got an update from the "stable" chart repositoryUpdate Complete. ⎈ Happy Helming!⎈ ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$ helm search confl NAME CHART VERSION APP VERSION DESCRIPTION confluent/cp-helm-charts 0.1.0 1.0 A Helm chart for Confluent Open Source stable/schema-registry-ui 0.2.1 v0.9.4 This is a web tool for the confluentinc/schema-registry i... ahmedmekawy@cloudshell:~/.kube (essential-rider-208218)$
  • 7. Installation Verification: ahmedmekawy@cloudshell:~ (essential-rider-208218)$ helm test my-confluent-oss RUNNING: my-confluent-oss-canary PASSED: my-confluent-oss-canary Staring Producer: ahmedmekawy@cloudshell:~ (essential-rider-208218)$ kubectl exec -c cp-kafka-broker -it my- confluent-oss-cp-kafka-0 -- /bin/bash /usr/bin/kafka-console-producer --broker-list localhost:9092 -- topic test >hello from producer [2019-01-23 08:52:45,848] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 1 : {test=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient) >this is 2n producer message>
  • 8. Staring Consumer: >ahmedmekawy@cloudshell:~ (essential-rider-208218)$ kubectl exec -c cp-kafka-broker -it my- confluent-oss-cp-kafka-0 -- /bin/bash /usr/bin/kafka-console-consumer -bootstrap-server localhost:9092 --topic test --from-beginning hello from producer this is 2n producer message
  • 9. Congratulation Kafka Confluent is installed successfully  Reference: https://docs.confluent.io/current/installation/installing_cp/cp-helm-charts/docs/index.html