Skip to content

Instantly share code, notes, and snippets.

@arashkaffamanesh
Created July 12, 2019 21:30
Show Gist options
  • Save arashkaffamanesh/46960d5ee892bc431009f5ba511f1a24 to your computer and use it in GitHub Desktop.
Save arashkaffamanesh/46960d5ee892bc431009f5ba511f1a24 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: kafka-topics
namespace: aceme-confluent-dev # change it
labels:
app.kubernetes.io/component: kafka-topics
spec:
ports:
- port: 8082
name: web
selector:
app.kubernetes.io/component: kafka-topics
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: '1'
labels:
app.kubernetes.io/component: kafka-topics
app.kubernetes.io/instance: kafka-tooling
app.kubernetes.io/name: kafka-tooling
app.kubernetes.io/version: v1.0
name: kafka-topics
namespace: aceme-confluent-dev # change it
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/component: kafka-topics
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: kafka-topics
name: kafka-topics
spec:
containers:
- env:
- name: KAFKA_REST_PROXY_URL
value: 'brawny-camel-cp-kafka-rest:8082' # change it
- name: PROXY
value: 'true'
- name: PORT
value: '8082'
image: 'landoop/kafka-topics-ui:latest'
imagePullPolicy: Always
name: kafka-topics
ports:
- containerPort: 8082
name: http
# protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment