Skip to content

Instantly share code, notes, and snippets.

@solyard
Created January 24, 2023 09:06
Show Gist options
  • Save solyard/49c7cc5dd1b58eab2f8bd749e61ef17d to your computer and use it in GitHub Desktop.
Save solyard/49c7cc5dd1b58eab2f8bd749e61ef17d to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Secret
metadata:
name: akhq-secrets
labels:
app.kubernetes.io/name: akhq
type: Opaque
stringData:
application-secrets.yml: |
akhq:
connections:
kafka-cluster:
properties:
bootstrap.servers: kafka-headless:9092
---
apiVersion: v1
kind: Service
metadata:
name: akhq
labels:
app: akhq
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: akhq
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: akhq
labels:
app: akhq
spec:
replicas: 1
selector:
matchLabels:
app: akhq
template:
metadata:
labels:
app: akhq
spec:
containers:
- name: app
image: tchiotludo/akhq:0.19.0
imagePullPolicy: IfNotPresent
env:
- name: MICRONAUT_ENVIRONMENTS
value: secrets
- name: MICRONAUT_CONFIG_FILES
value: /app/application.yml,/app/application-secrets.yml
volumeMounts:
- name: config
mountPath: /app/application.yml
subPath: application.yml
- name: secrets
mountPath: /app/application-secrets.yml
subPath: application-secrets.yml
ports:
- name: http
containerPort: 8080
protocol: TCP
- name: management
containerPort: 28081
protocol: TCP
livenessProbe:
tcpSocket:
port: management
readinessProbe:
httpGet:
path: /health
port: management
resources:
limits:
cpu: "1"
memory: "512Mi"
requests:
cpu: "500m"
memory: "256Mi"
volumes:
- name: config
configMap:
name: akhq
- name: secrets
secret:
secretName: akhq-secrets
enableServiceLinks: false
serviceAccountName: default
---
apiVersion: v1
kind: ConfigMap
metadata:
name: akhq
namespace: itis-rus
labels:
app.kubernetes.io/name: akhq
data:
application.yml: |
akhq:
server:
access-log:
enabled: false
name: org.akhq.log.access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment