remove out-of-band traefik svc
ci / build (push) Waiting to run Details

This commit is contained in:
CJ_Clippy 2024-06-28 19:45:22 -08:00
parent 94cc07bbb0
commit 911ea3e8c1
5 changed files with 17 additions and 52 deletions

View File

@ -11,11 +11,7 @@ secrets:
flux: flux:
./scripts/flux-bootstrap.sh ./scripts/flux-bootstrap.sh
dev: kind namespaces secrets velero chisel cluster: echoenv kind namespaces secrets velero chisel flux
prod: echoenv namespaces secrets velero chisel flux
staging: echoenv namespaces secrets velero chisel flux
echoenv: echoenv:
echo "[echoenv] Using ${ENV} environment. If this is not what you want, export ENV=development|staging|production" echo "[echoenv] Using ${ENV} environment. If this is not what you want, export ENV=development|staging|production"

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
name: fp name: fp
description: The Galaxy's Best VTuber Hentai Site description: The Galaxy's Best VTuber Hentai Site
version: 0.0.9 version: 0.0.10
keywords: keywords:
- fp - fp
- futureporn - futureporn

View File

@ -1,46 +0,0 @@
---
apiVersion: v1
kind: Service
metadata:
name: traefik
namespace: futureporn
annotations:
{{ if eq .Values.environment "development" }}
chisel-operator.io/exit-node-name: "traefik-exit-node"
{{ end }}
meta.helm.sh/release-name: fp
meta.helm.sh/release-namespace: futureporn
labels:
app.kubernetes.io/managed-by: Helm
spec:
ports:
- name: web
port: 80
targetPort: web
protocol: TCP
- name: websecure
port: 443
protocol: TCP
selector:
app.kubernetes.io/name: traefik
app.kubernetes.io/instance: traefik-futureporn
type: LoadBalancer
{{ if eq .Values.environment "development" }}
---
apiVersion: chisel-operator.io/v1
kind: ExitNode
metadata:
name: traefik-exit-node
namespace: futureporn
spec:
host: "{{ .Values.chisel.exitNodeIp }}"
port: 9090
auth: chisel
{{ end }}

View File

@ -4,6 +4,11 @@ if [ -z "${ENV}" ]; then \
echo "Error: ENV variable is not defined. Please set to one of development|staging|production"; exit 1; \ echo "Error: ENV variable is not defined. Please set to one of development|staging|production"; exit 1; \
fi fi
if [ "${ENV}" == "development" ]; then \
echo "Flux is not used in development environment. Skipping."
exit 0
fi
# flux bootstrap git \ # flux bootstrap git \
# --kubeconfig /home/cj/.kube/vke.yaml \ # --kubeconfig /home/cj/.kube/vke.yaml \
# --url=https://gitea.futureporn.net/futureporn/fp.git \ # --url=https://gitea.futureporn.net/futureporn/fp.git \

View File

@ -1,6 +1,16 @@
#!/bin/sh #!/bin/sh
set -o errexit set -o errexit
if [ -z "${ENV}" ]; then \
echo "Error: ENV variable is not defined. Please set to one of development|staging|production"; exit 1; \
fi
if [ "${ENV}" != "development" ]; then \
echo "kind is only for development environment. Skipping."
exit 0
fi
# 1. Create registry container unless it already exists # 1. Create registry container unless it already exists
reg_name='kind-registry' reg_name='kind-registry'
reg_port='5001' reg_port='5001'