apiVersion: apps/v1 kind: Deployment metadata: name: astrojs spec: selector: matchLabels: app: astrojs replicas: 1 template: metadata: labels: app: astrojs spec: imagePullSecrets: - name: registry-auth containers: - name: web image: registry.k8s.astropenguin.net/astrojs:IMAGE_TAG securityContext: runAsGroup: 1001 runAsNonRoot: true runAsUser: 1001 env: - name: CLOSURE_ENDPOINT value: "http://closure-api.default.svc.cluster.local/compile" --- apiVersion: v1 kind: Service metadata: name: astrojs spec: selector: app: astrojs ports: - port: 8080 targetPort: 8080 name: web --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: astrojs spec: parentRefs: - name: gateway-prod namespace: cilium-system sectionName: k8s-astropenguin-net hostnames: - astrojs.k8s.astropenguin.net rules: - matches: - path: type: PathPrefix value: / filters: - type: URLRewrite urlRewrite: path: type: ReplaceFullPath replaceFullPath: / backendRefs: - name: astrojs port: 8080