Skip to content

Commit

Permalink
add kustomization base to repo
Browse files Browse the repository at this point in the history
Signed-off-by: Weifeng Wang <[email protected]>
  • Loading branch information
qclaogui committed Jun 20, 2021
1 parent c44d571 commit 4fd335f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deploy/base/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafka-exporter
spec:
replicas: 1
template:
spec:
containers:
- name: kafka-exporter
imagePullPolicy: IfNotPresent
image: danielqsj/kafka-exporter
ports:
- name: http-metrics
containerPort: 9308
protocol: TCP
15 changes: 15 additions & 0 deletions deploy/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ----------------------------------------------------
# apiVersion and kind of Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

commonLabels:
app: kafka-exporter

resources:
- deployment.yaml
- service.yaml

images:
- name: danielqsj/kafka-exporter
newTag: latest
10 changes: 10 additions & 0 deletions deploy/base/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: kafka-exporter
spec:
ports:
- name: http-metrics
port: 80
protocol: TCP
targetPort: 9308

0 comments on commit 4fd335f

Please sign in to comment.