Files
opsxsql/kubernetes/examples/ingress.yaml
T
Logan.Li 738498fea3 feat(k8s): align install.sh with latest opsx-loki version
- cloud auto-detection (ACK/TKE/EKS/CCE/GKE/AKS/K3s/self-hosted) via
  node providerID, used for deployment banner and failure diagnostics
- storage class resolution chain: explicit STORAGE_CLASS > default
  annotation > sole SC; self-hosted clusters without any SC now get a
  zero-dependency static local PV (hostPath DirectoryOrCreate +
  nodeAffinity pin + WaitForFirstConsumer + Retain), LOCAL_STORAGE
  auto/off/force tri-state
- PVC rendered with resolved storageClassName + PVC_SIZE; image
  rendered into deployment via IMAGE env
- rollout failure diagnostics per waiting-reason: ImagePullBackOff
  lists per-cloud registry suggestions, CreateContainerConfigError
  points to secret, PVC Pending suggests per-cloud SC
- colored info/ok/warn/die helpers, /dev/urandom key fallback,
  completion banner with pod/node/ip, port-forward and backup hints
- kubernetes/examples/: alibaba ALB + tencent qcloud (CLB health
  check annotations, NodePort backend) ingress templates, secret
  example moved here (opsx-loki layout)
- README updated with env-var table and local-storage notes
2026-10-26 22:09:33 +08:00

24 lines
701 B
YAML

# 可选:阿里云 ACK 用 ALB IngressClass 的模板
# 其他云:腾讯 TKE 用 examples/ingress-tke.yaml;自建/nginx 用仓库根 kubernetes/ingress.yaml
# 若继续走外部 WAF 回源到 Service,则不需要本文件
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: opsxsql
namespace: opsxsql
annotations:
alb.ingress.kubernetes.io/healthcheck-path: /health
spec:
ingressClassName: alb
rules:
- host: opsxsql.example.com # ← 改成你的域名
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: opsxsql
port:
number: 80