Skip to content

Instantly share code, notes, and snippets.

View immutablesemaphore's full-sized avatar

Luke Taylor immutablesemaphore

View GitHub Profile
@immutablesemaphore
immutablesemaphore / confluent-cloud-metrcis-api-oas.yml
Created June 3, 2024 18:39
Confluent Cloud Metrics API OpenAPI Spec
openapi: 3.0.0
info:
contact:
name: Confluent
url: 'https://confluent.io'
email: support@confluent.io
description: >
# Introduction
@immutablesemaphore
immutablesemaphore / confluent-cloud-open-api.json
Last active July 22, 2024 17:34
Confluent Cloud Open API Spec
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.0",
"info": {
"title": "Confluent Cloud APIs",
"version": "",
"contact": {
"name": "Confluent Cloud",
"url": "https://www.confluent.io/cloud-contact-us/",
"email": "support@confluent.io"
},
@immutablesemaphore
immutablesemaphore / ccloud_openapi_20240202.json
Created February 2, 2024 13:42
Confluent Cloud OpenAPI Spec
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.0",
"info": {
"title": "Confluent Cloud APIs",
"version": "",
"contact": {
"name": "Confluent Cloud",
"url": "https://www.confluent.io/cloud-contact-us/",
"email": "support@confluent.io"
},

Basic pod k8s example

Update the yaml

  • Be sure to change all the instances of my to something that is more meaningful to you
    • Like gentle-bobs-dotnet-test in the metadata.name and spec.containers[0].name fields
  • Update the namespace
    • Change the metadata.namespace field in the yaml file
    • Use your target namespace in the kubectl commands below where -n or --namespace is used
@immutablesemaphore
immutablesemaphore / c3-overrides.css
Last active February 2, 2024 13:51
Confluent Control Center CSS Overrides
a[href="/clusters/my-cluster-id/health-plus"] {
display: none !important;
pointer-events: none !important;
visibility: hidden !important;
}
a[title="Alerts"] {
display: none !important;
pointer-events: none !important;
visibility: hidden !important;
@immutablesemaphore
immutablesemaphore / build-kcat.md
Last active September 29, 2022 20:33
kcat build
title type slug date draft tags
Building kcat
zettel
20220914123407
2022-09-14 12:34:07 UTC
false
>>kcat
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-user
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
@immutablesemaphore
immutablesemaphore / multi-broker-tunnel.sh
Created December 9, 2021 00:44 — forked from valer-cara/multi-broker-tunnel.sh
Kafka on kubernetes: portforward & dnat to all brokers for remote access
#!/bin/bash
# This is a bit hardcoded, but it's meant as a proof of concept.
# used in kubectl get pods when targeting kafka broker pods
KARGS="-n kafka -l release=kafka,app=kafka"
# used in kubectl port-forward (setting the namespace, can be omitted)
KPORTFWD_ARGS="-n kafka"
# port on broker pods to forward
DPORT=9092