remove out-of-band traefik svc
ci / build (push) Waiting to run
Details
ci / build (push) Waiting to run
Details
This commit is contained in:
parent
94cc07bbb0
commit
911ea3e8c1
6
Makefile
6
Makefile
|
@ -11,11 +11,7 @@ secrets:
|
|||
flux:
|
||||
./scripts/flux-bootstrap.sh
|
||||
|
||||
dev: kind namespaces secrets velero chisel
|
||||
|
||||
prod: echoenv namespaces secrets velero chisel flux
|
||||
|
||||
staging: echoenv namespaces secrets velero chisel flux
|
||||
cluster: echoenv kind namespaces secrets velero chisel flux
|
||||
|
||||
echoenv:
|
||||
echo "[echoenv] Using ${ENV} environment. If this is not what you want, export ENV=development|staging|production"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
apiVersion: v1
|
||||
name: fp
|
||||
description: The Galaxy's Best VTuber Hentai Site
|
||||
version: 0.0.9
|
||||
version: 0.0.10
|
||||
keywords:
|
||||
- fp
|
||||
- futureporn
|
||||
|
|
|
@ -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 }}
|
||||
|
||||
|
|
@ -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; \
|
||||
fi
|
||||
|
||||
if [ "${ENV}" == "development" ]; then \
|
||||
echo "Flux is not used in development environment. Skipping."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# flux bootstrap git \
|
||||
# --kubeconfig /home/cj/.kube/vke.yaml \
|
||||
# --url=https://gitea.futureporn.net/futureporn/fp.git \
|
||||
|
|
|
@ -1,6 +1,16 @@
|
|||
#!/bin/sh
|
||||
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
|
||||
reg_name='kind-registry'
|
||||
reg_port='5001'
|
||||
|
|
Loading…
Reference in New Issue