Skip to content

Instantly share code, notes, and snippets.

@honghuac
Created August 17, 2018 03:31
Show Gist options
  • Save honghuac/fe606a83b1d07b8c10dd0172bb9470b7 to your computer and use it in GitHub Desktop.
Save honghuac/fe606a83b1d07b8c10dd0172bb9470b7 to your computer and use it in GitHub Desktop.
strimzi
503 git clone https://github.com/scholzj/strimzi-training.git
504 cd strimzi-training/
506 cd examples/install/cluster-operator/
508 oc login https://master.6d13.openshift.opentlc.com
554 oc login -u user2 -p r3dh4t1!
555 oc new-project user2-kafka-project
556 oc adm policy add-role-to-user admin developer -n user2-kafka-project
557 oc new-project user2-kafka-project-2
558 oc adm policy add-role-to-user admin developer -n user2-kafka-project-2
566 oc apply -f examples/install/cluster-operator/01-ServiceAccount-strimzi-cluster-operator.yaml
567 oc login -u opentlc-mgr -p r3dh4t1!
568 oc project user2-kafka-project
573 oc apply -f examples/install/cluster-operator/02-ClusterRole-strimzi-cluster-operator-role.yaml
574 oc apply -f examples/install/cluster-operator/02-ClusterRoleBinding-strimzi-cluster-operator.yaml
575 oc apply -f examples/install/cluster-operator/03-ClusterRole-strimzi-kafka-broker.yaml
576 oc apply -f examples/install/cluster-operator/03-ClusterRoleBinding-strimzi-cluster-operator-kafka-broker-delegation.yaml
577 oc apply -f examples/install/cluster-operator/04-ClusterRole-strimzi-topic-operator.yaml
578 oc apply -f examples/install/cluster-operator/04-ClusterRoleBinding-strimzi-cluster-operator-topic-operator-delegation.yaml
579 oc apply -f examples/install/cluster-operator/04-Crd-kafka.yaml
580 oc apply -f examples/install/cluster-operator/04-Crd-kafkaconnect.yaml
581 oc apply -f examples/install/cluster-operator/04-Crd-kafkaconnects2i.yaml
582 oc apply -f examples/install/cluster-operator/04-Crd-kafkatopic.yaml
583 oc apply -f examples/install/cluster-operator/04-Crd-kafkauser.yaml
584 oc login -u user2 -p r3dh4t1!
585 oc apply -f examples/install/cluster-operator/01-ServiceAccount-strimzi-cluster-operator.yaml
586 oc apply -f examples/install/cluster-operator/05-Deployment-strimzi-cluster-operator.yaml
587 oc get deployments
591 oc login -u opentlc-mgr -p r3dh4t1!
592 oc apply -f examples/kafka/kafka-persistent.yaml -n user2-kafka-project
596 oc apply -f examples/topic/kafka-topic.yaml
597 oc get kafkatopics
600 oc login -u opentlc-mgr -p r3dh4t1!
601 oc apply -f examples/topic/kafka-topic.yaml
602 oc get kafkatopics
603 oc apply -f examples/user/kafka-user.yaml
604 oc get kafkausers
605 oc get secret my-user -o yaml
606 oc login -u user2 -p r3dh4t1!
607 oc apply -f examples/hello-world/deployment.yaml
608 oc logs $(oc get pod -l app=hello-world-producer -o=jsonpath='{.items[0].metadata.name}') -f
609 oc logs $(oc get pod -l app=hello-world-consumer -o=jsonpath='{.items[0].metadata.name}') -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment