feat: add staging/prod environments for arch-docs
- Add arch-docs-staging and arch-docs-prod ArgoCD applications - Add staging values: 1 replica, /staging/docs path - Add prod values: 2 replicas, /docs path - Move dev ingress from /docs to /dev/docs to avoid path conflicts - Full environment isolation: separate namespaces, paths, resources
This commit is contained in:
parent
b5b1a202d7
commit
5a5e556046
25
argocd-apps/arch-docs-prod.yaml
Normal file
25
argocd-apps/arch-docs-prod.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: arch-docs-prod
|
||||
namespace: argocd
|
||||
labels:
|
||||
environment: prod
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: http://10.10.10.1:3000/claude/k8s-apps.git
|
||||
targetRevision: main
|
||||
path: charts/web-app
|
||||
helm:
|
||||
valueFiles:
|
||||
- ../../environments/prod/arch-docs.yaml
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: prod
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
25
argocd-apps/arch-docs-staging.yaml
Normal file
25
argocd-apps/arch-docs-staging.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: arch-docs-staging
|
||||
namespace: argocd
|
||||
labels:
|
||||
environment: staging
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: http://10.10.10.1:3000/claude/k8s-apps.git
|
||||
targetRevision: main
|
||||
path: charts/web-app
|
||||
helm:
|
||||
valueFiles:
|
||||
- ../../environments/staging/arch-docs.yaml
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: staging
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
@ -26,7 +26,7 @@ ingress:
|
||||
enabled: true
|
||||
className: nginx
|
||||
host: keightgeore.duckdns.org
|
||||
path: "/docs(/|$)(.*)"
|
||||
path: "/dev/docs(/|$)(.*)"
|
||||
pathType: ImplementationSpecific
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: "/$2"
|
||||
|
||||
52
environments/prod/arch-docs.yaml
Normal file
52
environments/prod/arch-docs.yaml
Normal file
@ -0,0 +1,52 @@
|
||||
image:
|
||||
registry: 10.10.10.1:3000
|
||||
repository: claude/arch-docs
|
||||
tag: "placeholder"
|
||||
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
|
||||
replicaCount: 2
|
||||
|
||||
containerPort: 8080
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 32Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 64Mi
|
||||
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: prod
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
className: nginx
|
||||
host: keightgeore.duckdns.org
|
||||
path: "/docs(/|$)(.*)"
|
||||
pathType: ImplementationSpecific
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: "/$2"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
tls:
|
||||
enabled: true
|
||||
clusterIssuer: letsencrypt-prod
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
||||
extraVolumeMounts:
|
||||
- name: nginx-cache
|
||||
mountPath: /var/cache/nginx
|
||||
- name: nginx-run
|
||||
mountPath: /var/run
|
||||
|
||||
extraVolumes:
|
||||
- name: nginx-cache
|
||||
emptyDir: {}
|
||||
- name: nginx-run
|
||||
emptyDir: {}
|
||||
52
environments/staging/arch-docs.yaml
Normal file
52
environments/staging/arch-docs.yaml
Normal file
@ -0,0 +1,52 @@
|
||||
image:
|
||||
registry: 10.10.10.1:3000
|
||||
repository: claude/arch-docs
|
||||
tag: "placeholder"
|
||||
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
containerPort: 8080
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 16Mi
|
||||
limits:
|
||||
cpu: 50m
|
||||
memory: 32Mi
|
||||
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: staging
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
className: nginx
|
||||
host: keightgeore.duckdns.org
|
||||
path: "/staging/docs(/|$)(.*)"
|
||||
pathType: ImplementationSpecific
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: "/$2"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
tls:
|
||||
enabled: true
|
||||
clusterIssuer: letsencrypt-prod
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
||||
extraVolumeMounts:
|
||||
- name: nginx-cache
|
||||
mountPath: /var/cache/nginx
|
||||
- name: nginx-run
|
||||
mountPath: /var/run
|
||||
|
||||
extraVolumes:
|
||||
- name: nginx-cache
|
||||
emptyDir: {}
|
||||
- name: nginx-run
|
||||
emptyDir: {}
|
||||
Loading…
x
Reference in New Issue
Block a user