Compare commits

...

10 commits

Author SHA1 Message Date
Waylon S. Walker
573f8c082c bump version 2025-04-14 08:54:14 -05:00
Waylon S. Walker
fa9e0f3f4d annotations not label 2025-04-14 08:53:59 -05:00
Waylon S. Walker
344e79c73c bump version 2025-04-14 08:47:43 -05:00
Waylon S. Walker
8b63fe702c enable diun 2025-04-14 08:46:24 -05:00
Waylon S. Walker
126920d48d wip 2025-02-24 08:02:12 -06:00
Waylon S. Walker
20ef47ccc7 wip 2025-02-24 07:57:51 -06:00
Waylon S. Walker
32806ea7b1 wip 2025-02-24 07:56:10 -06:00
Waylon S. Walker
8fdedbcd93 wip 2025-02-24 07:55:20 -06:00
Waylon S. Walker
948efe60c7 disable netpol 2025-02-23 20:57:15 -06:00
Waylon S. Walker
54cd382650 allow ingress from kube-system 2025-02-23 20:56:34 -06:00
3 changed files with 26 additions and 11 deletions

View file

@ -7,5 +7,5 @@ icon: https://raw.githubusercontent.com/waylon/k8s-basic/master/helm-chart/logo.
name: k8s-basic name: k8s-basic
description: A helm chart for basic container deployment description: A helm chart for basic container deployment
type: application type: application
version: 1.0.0 version: 1.0.2
appVersion: "1.0" appVersion: "1.0"

View file

@ -14,6 +14,8 @@ spec:
metadata: metadata:
labels: labels:
service: {{ .Values.name }} service: {{ .Values.name }}
annotations:
diun.enable: "true"
spec: spec:
securityContext: securityContext:
{{ toYaml .Values.podSecurityContext | indent 8 }} {{ toYaml .Values.podSecurityContext | indent 8 }}

View file

@ -11,20 +11,15 @@ spec:
service: {{ .Values.name }} service: {{ .Values.name }}
policyTypes: policyTypes:
- Ingress - Ingress
- Egress
ingress: ingress:
- from: - from:
- namespaceSelector: - namespaceSelector:
matchLabels: matchLabels:
name: kube-system kubernetes.io/metadata.name: kube-system
podSelector: # ports:
matchLabels: # - protocol: TCP
app: traefik # port: {{ .Values.port }}
ports: # egress:
- protocol: TCP
port: {{ .Values.port }}
egress:
- {}
# TODO, optionally add egress restriction. # TODO, optionally add egress restriction.
# - to: # - to:
# - namespaceSelector: {} # - namespaceSelector: {}
@ -34,3 +29,21 @@ spec:
# port: 53 # port: 53
# - protocol: UDP # - protocol: UDP
# port: 53 # port: 53
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-network-dns-policy
namespace: {{ .Values.namespace | default .Values.name }}
spec:
ingress:
- ports:
- port: 53
protocol: TCP
- port: 53
protocol: UDP
podSelector:
matchLabels:
k8s-app: kube-dns
policyTypes:
- Ingress