Skip to content

Commit

Permalink
Adapts to the new entrypoint+command strategy, and distroless native …
Browse files Browse the repository at this point in the history
…zookeper
  • Loading branch information
solsson committed May 18, 2020
1 parent 728acff commit 53326d9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
8 changes: 8 additions & 0 deletions native/distroless.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- op: remove
path: /spec/template/spec/containers/0/readinessProbe/exec
- op: remove
path: /spec/template/spec/containers/0/readinessProbe
- op: remove
path: /spec/template/spec/containers/0/lifecycle/preStop/exec
- op: remove
path: /spec/template/spec/containers/0/lifecycle/preStop
13 changes: 13 additions & 0 deletions native/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,16 @@ bases:
- ../nonroot
patchesStrategicMerge:
- native-image-zookeeper.yaml
patchesJson6902:
- target:
group: apps
version: v1
kind: StatefulSet
name: pzoo
path: distroless.yaml
- target:
group: apps
version: v1
kind: StatefulSet
name: zoo
path: distroless.yaml
6 changes: 3 additions & 3 deletions nonroot/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ bases:
- ../rbac-namespace-default
- ../kafka
- ../zookeeper
patchesStrategicMerge:
- nonroot-image-kafka.yaml
- nonroot-image-zookeeper.yaml
patchesJson6902:
- target:
group: apps
Expand Down Expand Up @@ -39,6 +42,3 @@ patchesJson6902:
kind: StatefulSet
name: zoo
path: entrypoint-from-image.yaml
patchesStrategicMerge:
- nonroot-image-kafka.yaml
- nonroot-image-zookeeper.yaml
4 changes: 2 additions & 2 deletions variants/dev-small/listener-localhost.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[
{"op": "add", "path": "/spec/template/spec/containers/0/args/2", "value": "--override"},
{"op": "add", "path": "/spec/template/spec/containers/0/args/3", "value": "advertised.listeners=PLAINTEXT://:9092,OUTSIDE://localhost:9094"}
{"op": "add", "path": "/spec/template/spec/containers/0/args/1", "value": "--override"},
{"op": "add", "path": "/spec/template/spec/containers/0/args/2", "value": "advertised.listeners=PLAINTEXT://:9092,OUTSIDE://localhost:9094"}
]

0 comments on commit 53326d9

Please sign in to comment.