|
| 1 | +Create a Kubernetes Cluster and Get Things Ready to Deploy a Cluster |
| 2 | +==================================================================== |
| 3 | + |
| 4 | +➜ eksctl create cluster --name=mcox-operator-ea --nodes 5 --region us-west-2 |
| 5 | + |
| 6 | +Error: |
| 7 | +2021-03-24 09:39:53 [✖] AWS::EC2::EIP/NATIP: CREATE_FAILED – "The maximum number of addresses has been reached. (Service: AmazonEC2; Status Code: 400; Error Code: AddressLimitExceeded; Request ID: 0912679b-0c28-4055-9e3e-449ffb7a8607; Proxy: null)" |
| 8 | + |
| 9 | +Note: To resolve the above error I had to request a Service Quota increase (5 -> 20): EC2-VPC Elastic IPs |
| 10 | + |
| 11 | +With any luck you should then receive (after some time) the following messages: |
| 12 | + |
| 13 | +2021-03-24 10:12:04 [ℹ] kubectl command should work with "/Users/mark.cox/.kube/config", try 'kubectl get nodes' |
| 14 | +2021-03-24 10:12:04 [✔] EKS cluster "mcox-operator-ea" in "us-west-2" region is ready |
| 15 | + |
| 16 | + |
| 17 | +➜ operator-earlyaccess git:(master) kubectl get nodes |
| 18 | +NAME STATUS ROLES AGE VERSION |
| 19 | +ip-192-168-3-46.us-west-2.compute.internal Ready <none> 93s v1.18.9-eks-d1db3c |
| 20 | +ip-192-168-31-48.us-west-2.compute.internal Ready <none> 97s v1.18.9-eks-d1db3c |
| 21 | +ip-192-168-37-105.us-west-2.compute.internal Ready <none> 93s v1.18.9-eks-d1db3c |
| 22 | +ip-192-168-41-149.us-west-2.compute.internal Ready <none> 99s v1.18.9-eks-d1db3c |
| 23 | +ip-192-168-72-137.us-west-2.compute.internal Ready <none> 96s v1.18.9-eks-d1db3c |
| 24 | + |
| 25 | + |
| 26 | +➜ operator-earlyaccess git:(master) kubectl create namespace confluent |
| 27 | +namespace/confluent created |
| 28 | + |
| 29 | + |
| 30 | +➜ operator-earlyaccess git:(master) kubectl config set-context --current --namespace=confluent |
| 31 | +Context " [email protected]" modified. |
| 32 | + |
| 33 | + |
| 34 | +➜ operator-earlyaccess git:(master) export [email protected] |
| 35 | +➜ operator-earlyaccess git:(master) export [email protected] |
| 36 | +➜ operator-earlyaccess git:(master) export APIKEY=<API Key> |
| 37 | + |
| 38 | + |
| 39 | +➜ operator-earlyaccess git:(master) kubectl create secret docker-registry confluent-registry \ |
| 40 | + --docker-server=confluent-docker-internal-early-access-operator-2.jfrog.io \ |
| 41 | + --docker-username=$USER \ |
| 42 | + --docker-password=$APIKEY \ |
| 43 | + --docker-email=$EMAIL |
| 44 | +secret/confluent-registry created |
| 45 | + |
| 46 | + |
| 47 | +➜ operator-earlyaccess git:(master) helm repo add confluentinc_earlyaccess \ |
| 48 | + https://confluent.jfrog.io/confluent/helm-early-access-operator-2 \ |
| 49 | + --username $USER \ |
| 50 | + --password $APIKEY |
| 51 | +"confluentinc_earlyaccess" has been added to your repositories |
| 52 | + |
| 53 | + |
| 54 | +➜ operator-earlyaccess git:(master) helm repo update |
| 55 | +Hang tight while we grab the latest from your chart repositories... |
| 56 | +...Successfully got an update from the "confluentinc_earlyaccess" chart repository |
| 57 | +Update Complete. ⎈ Happy Helming!⎈ |
| 58 | + |
| 59 | + |
| 60 | +Deploy Confluet Operator |
| 61 | +======================== |
| 62 | + |
| 63 | +➜ operator-earlyaccess git:(master) export TUTORIAL_HOME=/Users/mark.cox/Software/operator-earlyaccess/quickstart-deploy |
| 64 | + |
| 65 | + |
| 66 | +➜ operator-earlyaccess git:(master) helm upgrade --install operator confluentinc_earlyaccess/confluent-operator --set image.registry=confluent-docker-internal-early-access-operator-2.jfrog.io |
| 67 | +Release "operator" does not exist. Installing it now. |
| 68 | +NAME: operator |
| 69 | +LAST DEPLOYED: Wed Mar 24 10:29:18 2021 |
| 70 | +NAMESPACE: confluent |
| 71 | +STATUS: deployed |
| 72 | +REVISION: 1 |
| 73 | +TEST SUITE: None |
| 74 | +NOTES: |
| 75 | +The Confluent Operator |
| 76 | + |
| 77 | +The Confluent Operator brings the component (Confluent Services) specific controllers for kubernetes by providing components specific Custom Resource |
| 78 | +Definition (CRD) as well as managing other Confluent Platform services |
| 79 | + |
| 80 | + |
| 81 | +➜ operator-earlyaccess git:(master) kubectl get pods |
| 82 | +NAME READY STATUS RESTARTS AGE |
| 83 | +confluent-operator-5467c847cc-xnmvs 1/1 Running 0 48s |
| 84 | + |
| 85 | + |
| 86 | +➜ operator-earlyaccess git:(master) kubectl apply -f $TUTORIAL_HOME/confluent-platform.yaml |
| 87 | +zookeeper.platform.confluent.io/zookeeper created |
| 88 | +kafka.platform.confluent.io/kafka created |
| 89 | +connect.platform.confluent.io/connect created |
| 90 | +ksqldb.platform.confluent.io/ksqldb created |
| 91 | +controlcenter.platform.confluent.io/controlcenter created |
| 92 | +schemaregistry.platform.confluent.io/schemaregistry created |
| 93 | +➜ |
| 94 | + |
| 95 | + |
| 96 | +➜ operator-earlyaccess git:(master) kubectl get confluent |
| 97 | +NAME REPLICAS READY STATUS AGE |
| 98 | +controlcenter.platform.confluent.io/controlcenter 1 1 RUNNING 6m30s |
| 99 | + |
| 100 | +NAME REPLICAS READY STATUS AGE |
| 101 | +schemaregistry.platform.confluent.io/schemaregistry 1 1 RUNNING 6m30s |
| 102 | + |
| 103 | +NAME REPLICAS READY STATUS AGE |
| 104 | +zookeeper.platform.confluent.io/zookeeper 3 3 RUNNING 6m31s |
| 105 | + |
| 106 | +NAME REPLICAS READY STATUS AGE |
| 107 | +connect.platform.confluent.io/connect 1 1 RUNNING 6m30s |
| 108 | + |
| 109 | +NAME REPLICAS READY STATUS AGE |
| 110 | +kafka.platform.confluent.io/kafka 3 3 RUNNING 6m30s |
| 111 | + |
| 112 | +NAME REPLICAS READY STATUS AGE |
| 113 | +ksqldb.platform.confluent.io/ksqldb 1 1 RUNNING 6m31s |
| 114 | + |
| 115 | + |
| 116 | +➜ operator-earlyaccess git:(master) kubectl port-forward controlcenter-0 9021:9021 |
| 117 | +Forwarding from 127.0.0.1:9021 -> 9021 |
| 118 | +Forwarding from [::1]:9021 -> 9021 |
| 119 | + |
| 120 | + |
| 121 | +http://localhost:9021 |
0 commit comments