feat(irc): add Istio ambient mode, waypoint, and AuthorizationPolicies
Best Practices / Polaris Audit (push) Has been cancelled
Best Practices / Resource Usage Analysis (push) Has been cancelled
Best Practices / PR Summary Report (push) Has been cancelled
Best Practices / Polaris PR Review (push) Has been cancelled
Security Scan / Trivy Security Scan (push) Has been cancelled
Security Scan / Trivy PR Review (push) Has been cancelled
Security Scan / Checkov IaC Scan (push) Has been cancelled
Security Scan / Checkov PR Review (push) Has been cancelled
Validate Manifests / YAML Lint (push) Has been cancelled
Validate Manifests / Kustomize Build Test (push) Has been cancelled
Validate Manifests / Kubernetes Schema Validation (push) Has been cancelled
Best Practices / Kube-score Analysis (push) Has been cancelled
Best Practices / Polaris Audit (push) Has been cancelled
Best Practices / Resource Usage Analysis (push) Has been cancelled
Best Practices / PR Summary Report (push) Has been cancelled
Best Practices / Polaris PR Review (push) Has been cancelled
Security Scan / Trivy Security Scan (push) Has been cancelled
Security Scan / Trivy PR Review (push) Has been cancelled
Security Scan / Checkov IaC Scan (push) Has been cancelled
Security Scan / Checkov PR Review (push) Has been cancelled
Validate Manifests / YAML Lint (push) Has been cancelled
Validate Manifests / Kustomize Build Test (push) Has been cancelled
Validate Manifests / Kubernetes Schema Validation (push) Has been cancelled
Best Practices / Kube-score Analysis (push) Has been cancelled
- Add namespace.yaml with istio ambient + waypoint labels - Add waypoint Gateway (istio-waypoint) scoped to irc namespace - Switch thelounge HTTPRoute from Cilium external to istio-external gateway - Add AuthorizationPolicy for thelounge (allow inbound from gateway-system only) - Add AuthorizationPolicy for znc (allow all on port 6501 for IRC clients) - Add namespace: irc to root kustomization, remove dependency on targetNamespace Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
|
namespace: irc
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- waypoint.yaml
|
||||||
# Uncomment if storing configuration in the repo
|
# Uncomment if storing configuration in the repo
|
||||||
# - configmap.yaml
|
# - configmap.yaml
|
||||||
- ./thelounge
|
- ./thelounge
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: irc
|
||||||
|
labels:
|
||||||
|
istio.io/dataplane-mode: ambient
|
||||||
|
istio.io/use-waypoint: waypoint
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: security.istio.io/v1
|
||||||
|
kind: AuthorizationPolicy
|
||||||
|
metadata:
|
||||||
|
name: thelounge
|
||||||
|
namespace: irc
|
||||||
|
spec:
|
||||||
|
targetRefs:
|
||||||
|
- group: ""
|
||||||
|
kind: Service
|
||||||
|
name: thelounge
|
||||||
|
action: ALLOW
|
||||||
|
rules:
|
||||||
|
- from:
|
||||||
|
- source:
|
||||||
|
namespaces:
|
||||||
|
- gateway-system
|
||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
namespace: irc
|
namespace: irc
|
||||||
spec:
|
spec:
|
||||||
parentRefs:
|
parentRefs:
|
||||||
- name: external
|
- name: istio-external
|
||||||
namespace: gateway-system
|
namespace: gateway-system
|
||||||
hostnames:
|
hostnames:
|
||||||
- ${THELOUNGE_HOSTNAME}
|
- ${THELOUNGE_HOSTNAME}
|
||||||
|
|||||||
@@ -4,3 +4,4 @@ resources:
|
|||||||
- statefulset.yaml
|
- statefulset.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
|
- authorizationpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: waypoint
|
||||||
|
namespace: irc
|
||||||
|
labels:
|
||||||
|
istio.io/waypoint-for: namespace
|
||||||
|
spec:
|
||||||
|
gatewayClassName: istio-waypoint
|
||||||
|
listeners:
|
||||||
|
- name: mesh
|
||||||
|
port: 15008
|
||||||
|
protocol: HBONE
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: security.istio.io/v1
|
||||||
|
kind: AuthorizationPolicy
|
||||||
|
metadata:
|
||||||
|
name: znc
|
||||||
|
namespace: irc
|
||||||
|
spec:
|
||||||
|
targetRefs:
|
||||||
|
- group: ""
|
||||||
|
kind: Service
|
||||||
|
name: znc
|
||||||
|
action: ALLOW
|
||||||
|
rules:
|
||||||
|
- to:
|
||||||
|
- operation:
|
||||||
|
ports:
|
||||||
|
- "6501"
|
||||||
@@ -3,3 +3,4 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- statefulset.yaml
|
- statefulset.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
- authorizationpolicy.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user