From 9f2f202fa37ddd99be4e6e23c917fc6f573bda6d Mon Sep 17 00:00:00 2001 From: William P Date: Sun, 9 Mar 2025 18:52:47 -0400 Subject: [PATCH] whatismyip: replace chart with manifests --- whatismyip/Chart.yaml | 28 ---------------------------- whatismyip/cert-dubyatp-xyz.yaml | 0 whatismyip/deployment.yaml | 20 ++++++++++++++++++++ whatismyip/ingress.yaml | 22 ++++++++++++++++++++++ whatismyip/svc.yaml | 10 ++++++++++ whatismyip/values.yaml | 22 ---------------------- 6 files changed, 52 insertions(+), 50 deletions(-) delete mode 100644 whatismyip/Chart.yaml create mode 100644 whatismyip/cert-dubyatp-xyz.yaml create mode 100644 whatismyip/deployment.yaml create mode 100644 whatismyip/ingress.yaml create mode 100644 whatismyip/svc.yaml delete mode 100644 whatismyip/values.yaml diff --git a/whatismyip/Chart.yaml b/whatismyip/Chart.yaml deleted file mode 100644 index 76821fd..0000000 --- a/whatismyip/Chart.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: v2 -name: whatismyip -description: A Helm chart for Kubernetes - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -appVersion: "1.0" - -dependencies: -- name: whatsmyip - version: 1.3.1 - repository: https://eugenmayer.github.io/helm-charts/ \ No newline at end of file diff --git a/whatismyip/cert-dubyatp-xyz.yaml b/whatismyip/cert-dubyatp-xyz.yaml new file mode 100644 index 0000000..e69de29 diff --git a/whatismyip/deployment.yaml b/whatismyip/deployment.yaml new file mode 100644 index 0000000..07d89d9 --- /dev/null +++ b/whatismyip/deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: whatismyip +spec: + selector: + matchLabels: + app: whatismyip + template: + metadata: + labels: + app: whatismyip + spec: + containers: + - name: whatismyip + image: ghcr.io/eugenmayer/whatsmyip:0.0.1 + resources: + limits: + memory: "128Mi" + cpu: "500m" diff --git a/whatismyip/ingress.yaml b/whatismyip/ingress.yaml new file mode 100644 index 0000000..47983db --- /dev/null +++ b/whatismyip/ingress.yaml @@ -0,0 +1,22 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: whatismyip-ingress + annotations: + traefik.ingress.kubernetes.io/router.middlewares: cloudflarewarp@file +spec: + rules: + - host: whatismyip.dubyatp.xyz + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: whatismyip-svc + port: + number: 8080 + tls: + - hosts: + - whatismyip.dubyatp.xyz + secretName: cert-dubyatp-xyz \ No newline at end of file diff --git a/whatismyip/svc.yaml b/whatismyip/svc.yaml new file mode 100644 index 0000000..2cb3a4c --- /dev/null +++ b/whatismyip/svc.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: whatismyip-svc +spec: + selector: + app: whatismyip + ports: + - port: 8080 + targetPort: 8080 diff --git a/whatismyip/values.yaml b/whatismyip/values.yaml deleted file mode 100644 index 4673a87..0000000 --- a/whatismyip/values.yaml +++ /dev/null @@ -1,22 +0,0 @@ -whatsmyip: - ingress: - main: - enabled: true - hosts: - - host: whatismyip.dubyatp.xyz - paths: - - path: / - pathType: Prefix - tls: - - hosts: - - whatismyip.dubyatp.xyz - secretName: cert-dubyatp-xyz - secret: - cert-dubyatp-xyz: - enabled: true - annotations: - replicator.v1.mittwald.de/replicate-from: "cert-manager/cert-dubyatp-xyz" - replicator.v1.mittwald.de/replicated-keys: "tls.crt,tls.key" - data: - tls.crt: "" - tls.key: "" \ No newline at end of file