Giter Site home page Giter Site logo

cfk-openshift-deploy's Introduction

cfk-openshift-deploy

deploying

Deploy confluent-for-kubernetes deployment using the operator

./create-kafka-deployment.sh <namespace> <Domain-url> <config-template.yaml> <kafka-user> <kafka-user-pass> <c3-user> <c3-user-pass>

e.g.

./create-kafka-deployment.sh confluent apps.ns.cp.fyre.ibm.com kafka-template.yaml kuser kuserPASS c3user c3userPASS

Before running this script make sure you edit the create-kafka-certs.sh and make sure line# 3 and 4 is to your liking.

This script creates the namespace, and installs the operator within the namespace. It then generates all the certificates for the components, creates the secrets and generates the deployment configuration. Apply the deployment using

oc apply -f deployed-config-template.yaml

deploying a specific version of the operator

The create-kafka-deployment script deploys the latest version of the helm chart available in the repo. However, if there is a need to install a specific version of the chart after adding the repo, you can install a specific version of the release.

Adding the repo by issuing the following command

helm repo add confluentinc https://packages.confluent.io/helm

Now you can list the available versions by running

helm search repo confluentinc -l

Then picking a specific version to install by issuing

helm upgrade --install cfk-operator confluentinc/confluent-for-kubernetes --version 0.304.17

remember it is Chart Version you are installing and not the App Version

licensed version

Before running the oc apply command update your operator with your license text.

helm upgrade --install cfk-operator confluentinc/confluent-for-kubernetes --set licenseKey=<CFK license key>

After the operator is updated, you can edit all the components in the yaml and add

spec:
  license:
    globalLicense: true

and re-apply the deployment.

cat deployed-kafka-template.yaml | yq e ".spec.license.globalLicense=true" - | oc apply -f -

if you want to keep a copy of the deployment yaml. Just pipe it into a file and save it

cat deployed-kafka-template.yaml | yq e ".spec.license.globalLicense=true" - > deployed-kafka-template-lic.yaml

oc apply -f deployed-kafka-template-lic.yaml

removing

./remove-kafka-deployment.sh <namespace>

e.g.

./remove-kafka-deployment.sh confluent

This script deletes the current deployment from the namespace and deletes the secrets generated by the deployment. It doesn't remove the namespace. You can remove it by

oc delete project <namespace>

prerequisites

  1. helm
  curl -fsSL -o /tmp/get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
  chmod +x /tmp/get_helm.sh
  /tmp/get_helm.sh
  1. keytool
yum install java-1.8.0-openjdk -y
  1. yq
VER=4.25.1 BIN=yq_linux_amd64;wget https://github.com/mikefarah/yq/releases/download/v${VER}/${BIN} -O /usr/bin/yq && chmod +x /usr/bin/yq

/chg0517

cfk-openshift-deploy's People

Contributors

nmsaini avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

cfk-openshift-deploy's Issues

no matches for kind "KafkaRestProxy" in version "platform.confluent.io/v1beta1"

hi,

when I installed this on OCP 4.8.31 on AWS, I got this error:
oc apply -f ./deployed-20220326-kafka-template.yaml

connect.platform.confluent.io/connect configured
controlcenter.platform.confluent.io/controlcenter unchanged
kafka.platform.confluent.io/kafka configured
ksqldb.platform.confluent.io/ksqldb unchanged
schemaregistry.platform.confluent.io/schemaregistry unchanged
zookeeper.platform.confluent.io/zookeeper unchanged
error: unable to recognize "./deployed-20220326-kafka-template.yaml": no matches for kind "KafkaRestProxy" in version "platform.confluent.io/v1beta1"

Any idea why is that? thanks in advance.

Pei Wang at Converge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.