Skip to content

Commit

Permalink
chore: fix istio mTLS stopping traffic to webhook.
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanHoladay committed Jan 10, 2024
1 parent 504b759 commit dceab61
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions manifests/peerauth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: cert-manager-webhook-exception
namespace: cert-manager
spec:
mtls:
mode: STRICT
portLevelMtls:
10250:
mode: PERMISSIVE
selector:
matchLabels:
app.kubernetes.io/name: webhook
1 change: 0 additions & 1 deletion values/registry1-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ startupapicheck:
image:
repository: registry1.dso.mil/ironbank/jetstack/cert-manager-ctl
tag: "v1.13.2"

podLabels:
sidecar.istio.io/inject: "false"

Expand Down
8 changes: 4 additions & 4 deletions values/upstream-values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
startupapicheck:
podLabels:
sidecar.istio.io/inject: "false"

installCRDs: true

# delete secret if certificate is deleted
Expand All @@ -14,3 +10,7 @@ securityContext:
prometheus:
servicemonitor:
enabled: true

startupapicheck:
podLabels:
sidecar.istio.io/inject: "false"
9 changes: 6 additions & 3 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ variables:
autoIndent: true

components:
- name: namespace-istio-injection
- name: istio-configuration
required: true
manifests:
- name: cert-manager-namespace
- name: namespace-injection
files:
- manifests/cert-manager-namespace.yaml
- manifests/namespace.yaml
- name: webhook-peer-auth-exception
files:
- manifests/peerauth.yaml
actions:
onDeploy:
before:
Expand Down

0 comments on commit dceab61

Please sign in to comment.