Skip to content

Commit

Permalink
uf
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamv108 committed Sep 4, 2023
1 parent 81d8e09 commit 045773b
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ target/
.gradle/
.build/
k8s/
scripts/

.github/
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{secrets.DOCKER_USER}}/server-sent-events:latest
- name: Change Directory to fluentbit
run: cd fluentbit
- name: Build the Fluentbit Docker image
run: docker build . --file fluentbit/Dockerfile --tag ${{secrets.DOCKER_USER}}/sse-fluentbit:latest
- name: Change Directory to Root
run: cd ..
- name: Docker Push To DockerHub
run: docker push ${{secrets.DOCKER_USER}}/server-sent-events
- name: Docker Push Fluentbit To DockerHub
Expand Down
103 changes: 103 additions & 0 deletions k8s/kafdrop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafkdrop
namespace: kafka
labels:
app.kubernetes.io/name: kafkdrop
app.kubernetes.io/instance: latest
app.kubernetes.io/managed-by: kafka
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: kafdrop
app.kubernetes.io/instance: latest
template:
metadata:
labels:
app.kubernetes.io/name: kafdrop
app.kubernetes.io/instance: latest
annotations:
spec:
{{- if .Values.hostAliases }}
hostAliases:
{{ toYaml .Values.hostAliases | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "obsidiandynamics/kafdrop:latest"
imagePullPolicy: Always
env:
- name: KAFKA_BROKERCONNECT
value: "kafka:9092"
- name: KAFKA_PROPERTIES
value: ""
- name: KAFKA_TRUSTSTORE
value: ""
- name: KAFKA_KEYSTORE
value: ""
- name: JVM_OPTS
value: ""
- name: JMX_PORT
value: 8686
- name: HOST
value: ""
- name: SERVER_SERVLET_CONTEXTPATH
value: "/"
- name: KAFKA_PROPERTIES_FILE
value: "kafka.properties"
- name: KAFKA_TRUSTSTORE_FILE
value: "kafka.truststore.jks"
- name: KAFKA_KEYSTORE_FILE
value: "kafka.keystore.jks"
- name: SERVER_PORT
value: "9000"
- name: CMD_ARGS

value: ""

ports:
- name: http
containerPort: 9000
protocol: TCP
livenessProbe:
httpGet:
path: "/actuator/health"
port: http
initialDelaySeconds: 180
periodSeconds: 30
timeoutSeconds: 10
readinessProbe:
httpGet:
path: "/actuator/health"
port: http
initialDelaySeconds: 20
periodSeconds: 5
timeoutSeconds: 10
resources:
requests:
cpu: 1m
memory: 128Mi
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.mountProtoDesc.enabled }}
volumeMounts:
- mountPath: /protodesc/
name: proto-desc
volumes:
- name: proto-desc
hostPath:
path: {{ .Values.mountProtoDesc.hostPath }}
type: Directory
{{- end }}

1 change: 0 additions & 1 deletion k8s/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ spec:
selector:
app: zookeeper
---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down

0 comments on commit 045773b

Please sign in to comment.