whatismyip: replace chart with manifests

This commit is contained in:
2025-03-09 18:52:47 -04:00
parent e31ae14aaf
commit 9f2f202fa3
6 changed files with 52 additions and 50 deletions

View File

@@ -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/

View File

View File

@@ -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"

22
whatismyip/ingress.yaml Normal file
View File

@@ -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

10
whatismyip/svc.yaml Normal file
View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: whatismyip-svc
spec:
selector:
app: whatismyip
ports:
- port: 8080
targetPort: 8080

View File

@@ -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: ""