This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
data: | |
MYSQL_ROOT_PASSWORD: cGFzc3dvcmQ= | |
kind: Secret | |
metadata: | |
name: mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
run: ngrok | |
name: multipod | |
spec: | |
containers: | |
- image: nginx:1.23.0-alpine | |
name: web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
data: | |
AUTH_TOKEN: eW91cl9zZWNyZXRfdG9rZW4K | |
kind: Secret | |
metadata: | |
name: ngrok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt update \ | |
&& apt install -y curl \ | |
&& curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc > /dev/null \ | |
&& echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list \ | |
&& apt update \ | |
&& apt install ngrok | |
ENTRYPOINT [ "ngrok" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: NetworkPolicy | |
metadata: | |
name: kafka-network-policy | |
namespace: kafka | |
spec: | |
podSelector: | |
matchLabels: | |
app: zookeeper | |
policyTypes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: kafka | |
name: kafka | |
namespace: kafka | |
spec: | |
replicas: 1 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
data: | |
ALLOW_PLAINTEXT_LISTENER: "yes" | |
KAFKA_BROKER_ID: "1" | |
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092 | |
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092 | |
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper | |
kind: ConfigMap | |
metadata: | |
name: kafka-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: zookeeper-claim | |
namespace: kafka | |
spec: | |
storageClassName: local-storage | |
accessModes: | |
- ReadWriteOnce | |
resources: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: kafka-pv | |
namespace: kafka | |
spec: | |
storageClassName: local-storage | |
capacity: | |
storage: "100Mi" | |
accessModes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: zookeeper | |
name: zookeeper | |
namespace: kafka | |
spec: | |
replicas: 1 | |
selector: |