ci: update hello-world app files
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hello-world
|
||||
namespace: hello-world
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hello-world
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hello-world
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harbor-pull-secret
|
||||
containers:
|
||||
- name: hello-world
|
||||
image: harbor.gleb-ai889-final.app.ariki.ai/gleb-ai889-final/hello-world:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
@@ -0,0 +1,35 @@
|
||||
# AI-889: how the demo is reached, and the file to copy for an app of your own.
|
||||
# The route attaches to listener hello-world of Gateway web in envoy-gateway-system, which the platform (k3s2-3)
|
||||
# creates on core and app clusters alike for hello-world.<cluster domain>. That listener admits routes only from
|
||||
# namespace hello-world, so this route only works in that namespace; a copy in another namespace is not accepted.
|
||||
# TLS ends at the listener with the platform's certificate, so the route carries no TLS settings and the app needs
|
||||
# no Certificate of its own.
|
||||
# AI-889: every field the Gateway API HTTPRoute CRD (v1.6.1) defaults is written out, at the value the API server
|
||||
# gives it: parentRefs group and kind, backendRefs group, kind and weight, and the rule's match on every path. Argo CD
|
||||
# compares this file with the live route on its own side, field by field, and a defaulted field left out here kept the
|
||||
# app OutOfSync for ever (live gate, 2026-11-28). Keep them in a copy, or turn on Argo CD's server-side diff for it.
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: hello-world
|
||||
namespace: hello-world
|
||||
spec:
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: web
|
||||
namespace: envoy-gateway-system
|
||||
sectionName: hello-world
|
||||
hostnames:
|
||||
- hello-world.gleb-ai889-final.app.ariki.ai
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: hello-world
|
||||
port: 80
|
||||
weight: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
# A Kustomize application, so Argo CD Image Updater can set the image tag as an Application override
|
||||
# (spec.source.kustomize.images) instead of anyone committing it into deployment.yml.
|
||||
resources:
|
||||
- deployment.yml
|
||||
- service.yml
|
||||
- httproute.yml
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hello-world
|
||||
namespace: hello-world
|
||||
spec:
|
||||
selector:
|
||||
app: hello-world
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
Reference in New Issue
Block a user