diff --git a/argocd/base/argo-cd-namespace.yaml b/argocd/base/argo-cd-namespace.yaml new file mode 100644 index 0000000..5bb2eb2 --- /dev/null +++ b/argocd/base/argo-cd-namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: argocd + labels: + name: argocd diff --git a/argocd/kustomization.yaml b/argocd/kustomization.yaml new file mode 100644 index 0000000..317fd9e --- /dev/null +++ b/argocd/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: argocd + +resources: +- base/argo-cd-namespace.yaml +- https://raw.githubusercontent.com/argoproj/argo-cd/master/manifests/ha/install.yaml diff --git a/ip_mziesel_nl/ip_mziesel_nl-deployment.yaml b/ip_mziesel_nl/ip_mziesel_nl-deployment.yaml deleted file mode 100644 index a9ff83a..0000000 --- a/ip_mziesel_nl/ip_mziesel_nl-deployment.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ip_mziesel_nl -spec: - replicas: 3 - revisionHistoryLimit: 3 - selector: - matchLabels: - app: ip_mziesel_nl - template: - metadata: - labels: - app: ip_mziesel_nl - spec: - containers: - - image: git.mziesel.nl/mans/ip-svc:2024-06-03 - name: ip_mziesel_nl - ports: - - containerPort: 8080 diff --git a/ip_mziesel_nl/ip_mziesel_nl-svc.yaml b/ip_mziesel_nl/ip_mziesel_nl-svc.yaml deleted file mode 100644 index 72b4742..0000000 --- a/ip_mziesel_nl/ip_mziesel_nl-svc.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: ip_mziesel_nl -spec: - type: NodePort - ports: - - port: 8080 - targetPort: 8080 - nodePort: 31339 - selector: - app: ip_mziesel_nl diff --git a/metallb/base/metallb-ip-address-pool.yaml b/metallb/base/metallb-ip-address-pool.yaml new file mode 100644 index 0000000..8e8064c --- /dev/null +++ b/metallb/base/metallb-ip-address-pool.yaml @@ -0,0 +1,8 @@ +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: first-pool + namespace: metallb-system +spec: + addresses: + - 192.168.10.160-192.168.10.199 diff --git a/metallb/base/metallb-l2-advertisement.yaml b/metallb/base/metallb-l2-advertisement.yaml new file mode 100644 index 0000000..09b2193 --- /dev/null +++ b/metallb/base/metallb-l2-advertisement.yaml @@ -0,0 +1,8 @@ +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: l2-advertisement + namespace: metallb-system +spec: + ipAddressPools: + - first-pool diff --git a/metallb/base/metallb-namespace.yaml b/metallb/base/metallb-namespace.yaml new file mode 100644 index 0000000..e69de29 diff --git a/metallb/kustomization.yaml b/metallb/kustomization.yaml new file mode 100644 index 0000000..9087273 --- /dev/null +++ b/metallb/kustomization.yaml @@ -0,0 +1,7 @@ +namespace: metallb-system + +resources: + - base/metallb-namespace.yaml + - github.com/metallb/metallb/config/native?ref=v0.14.8 + - base/metallb-ip-address-pool.yaml + - base/metallb-l2-advertisement.yaml diff --git a/traefik/traefik.yaml b/traefik/traefik.yaml new file mode 100644 index 0000000..e69de29 diff --git a/whoami/whoami-deployment.yaml b/whoami/whoami-deployment.yaml index 2ea60a9..a91c84e 100644 --- a/whoami/whoami-deployment.yaml +++ b/whoami/whoami-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: whoami + namespace: whoami spec: replicas: 3 revisionHistoryLimit: 3 diff --git a/whoami/whoami-namespace.yaml b/whoami/whoami-namespace.yaml new file mode 100644 index 0000000..e91c224 --- /dev/null +++ b/whoami/whoami-namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: whoami + labels: + pod-security.kubernetes.io/enforce: privileged diff --git a/whoami/whoami-svc.yaml b/whoami/whoami-svc.yaml index f9c62d4..0fadce0 100644 --- a/whoami/whoami-svc.yaml +++ b/whoami/whoami-svc.yaml @@ -1,7 +1,8 @@ apiVersion: v1 kind: Service metadata: - name: whoami + name: whoami-nodeport + namespace: whoami spec: type: NodePort ports: @@ -10,3 +11,16 @@ spec: nodePort: 31338 selector: app: whoami +--- +apiVersion: v1 +kind: Service +metadata: + name: whoami-loadbalancer + namespace: whoami +spec: + type: LoadBalancer + ports: + - port: 80 + targetPort: 80 + selector: + app: whoami