mirror of
https://github.com/ghndrx/k8s-game-2048.git
synced 2026-02-10 06:45:07 +00:00
- Add .env.example template with all configurable values - Create comprehensive .gitignore for personal data - Add sanitization script to remove hardcoded personal info - Add environment-aware deployment scripts - Add ENVIRONMENT.md documentation - Keep personal information in .env (gitignored) This makes the repository safe for public sharing while keeping personal domains, emails, and secrets secure.
43 lines
961 B
YAML
43 lines
961 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: webhook-handler-external
|
|
namespace: webhook-system
|
|
labels:
|
|
app: webhook-handler
|
|
spec:
|
|
selector:
|
|
app: webhook-handler
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: 8080
|
|
protocol: TCP
|
|
type: LoadBalancer # Change to NodePort if LoadBalancer is not available
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: webhook-handler-ingress
|
|
namespace: webhook-system
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod" # Adjust to your cert issuer
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- webhook.wa.darknex.us
|
|
secretName: webhook-tls
|
|
rules:
|
|
- host: webhook.wa.darknex.us
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: webhook-handler
|
|
port:
|
|
number: 80
|