Kubernetes Configuration and Notes

Fred Damstra (Macbook 2015) d3a80dc4c0 beam test 2 éve
Ansible ee73d451ca Minor updates from adding io as a node 2 éve
Images 1f825467f1 Fixed missing hyphen 2 éve
Retired 66000079ff Retired downloaders 2 éve
Testing 50a4ce54eb Some limits 2 éve
Workloads d3a80dc4c0 beam test 2 éve
aws 6d8e9c2901 Adds script and json to create an AWS user that can create DNS entries 4 éve
.gitignore c3e6bd64cf Ignore password 4 éve
.gitmodules af1dbe3944 Image Builds using kaniko 2 éve
README.kafka.md 992f23510a Redis Updates, Unifi RAM Fix 2 éve
README.md 9a1403f2f5 Updates 4 éve
RESTORE_ETCD 66e44251c6 More notes 4 éve
grafana_cloud_notes.md 17da1054a7 Octoprint Affinity Corrected 2 éve
k3s_notes.md 9a1403f2f5 Updates 4 éve
microk8s_notes.md cb1beb02c1 Added flink without archives 2 éve
original_notes.md 7489d2bf38 Not debugged. Bulk of k8s in there 4 éve

README.kafka.md

Kafka Notes

Following: https://medium.com/@prasanta.mohanty/deploy-kafka-cluster-on-microk8s-in-15-mins-f3d5081991e8

# k8s1 only:
microk8s enable helm
# microk8s helm init # removed in 2019

# All 3:
sudo apt-get install kafkacat

# back on just k8s1
mkdir src
cd src
git clone https://github.com/confluentinc/cp-helm-charts.git
cp cp-helm-charts/values.yaml .

Edit values.yaml, and add the following to the end of cp-kafka

  nodeport:
    enabled: true
    servicePort: 19092
    firstListenerPort: 31090
  configurationOverrides:
    "offsets.topic.replication.factor": "3"
    # "default.replication.factor": 3
    # "min.insync.replicas": 2
    # "auto.create.topics.enable": false## Options required for external access via NodePort
    ## ref:
    ## - http://kafka.apache.org/documentation/#security_configbroker
    ## - https://cwiki.apache.org/confluence/display/KAFKA/KIP-103%3A+Separation+of+Internal+and+External+traffic
    ##
    ## Advertised listeners will use the firstListenerPort value as it's default unless overridden here.
    ## Setting "advertised.listeners" here appends to "PLAINTEXT://${POD_IP}:9092,"
    "advertised.listeners": |-
     EXTERNAL://localhost:$((31090 + ${KAFKA_BROKER_ID}))
    "listener.security.protocol.map": |-
     PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT

Set cp-schema-registry and cp-control-center to enabled: false

Back to shell: ``` microk8s helm install my-confluent cp-helm-charts -f ./values.yaml