fix: Replace Ingress with HTTPRoute (Gateway API)
Switch from Ingress to HTTPRoute for Gateway API compatibility. Changes: - Remove k8s/ingress.yaml - Add k8s/httproute.yaml with Gateway API configuration - Update kustomization.yaml to reference httproute.yaml - Update README.md references from Ingress to HTTPRoute Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -80,7 +80,7 @@ kubectl port-forward statefulset/antigravity 5800:5800
|
||||
open http://localhost:5800
|
||||
```
|
||||
|
||||
Or configure Ingress for external access.
|
||||
Or configure HTTPRoute (Gateway API) for external access via your domain.
|
||||
|
||||
## Environment Variables
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: antigravity
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: gateway # Replace with your Gateway name
|
||||
namespace: gateway-system # Replace with your Gateway namespace
|
||||
hostnames:
|
||||
- "antigravity.example.com" # Replace with your domain
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: antigravity
|
||||
port: 5800
|
||||
weight: 1
|
||||
@@ -1,27 +0,0 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: antigravity
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
|
||||
nginx.ingress.kubernetes.io/websocket-services: "antigravity"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- antigravity.example.com # Replace with your domain
|
||||
secretName: antigravity-tls
|
||||
rules:
|
||||
- host: antigravity.example.com # Replace with your domain
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: antigravity
|
||||
port:
|
||||
number: 5800
|
||||
@@ -7,7 +7,7 @@ namespace: default
|
||||
resources:
|
||||
- configmap.yaml
|
||||
- statefulset.yaml
|
||||
- ingress.yaml
|
||||
- httproute.yaml
|
||||
|
||||
# Uncomment to create secrets from files
|
||||
# secretGenerator:
|
||||
|
||||
Reference in New Issue
Block a user