[DO-1600] Move namespace prod to avroid-prod (!36)

[DO-1600]

Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech>
Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/36
Reviewed-by: Vasiliy Chipizhin <vasiliy.chipizhin@avroid.team>
Reviewed-by: Rustam Tagaev <rustam.tagaev@avroid.team>
This commit is contained in:
Denis Patrakeev
2025-02-24 13:56:29 +03:00
parent d23152de7c
commit 565da97928
13 changed files with 19 additions and 19 deletions

View File

@@ -0,0 +1,51 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: plantuml
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: plantuml
destination:
server: https://kubernetes.default.svc
namespace: avroid-prod
sources:
- repoURL: https://git.avroid.tech/K8s/k8s-configs.git
targetRevision: master
ref: values
- repoURL: https://nexus.avroid.tech/repository/devops-helm-proxy-helm/
chart: "stevehipwell/plantuml"
targetRevision: 3.36.0
helm:
valueFiles:
- $values/clusters/k8s-avroid-office.prod.local/namespaces/avroid-prod/diagrams-tools/plantuml/values-ovveride.yaml
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ApplyOutOfSyncOnly=true
- CreateNamespace=true
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: plantuml
namespace: argocd
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
sourceRepos:
- https://git.avroid.tech/K8s/k8s-configs.git
- https://nexus.avroid.tech/repository/devops-helm-proxy-helm/
# Only permit applications to deploy to the guestbook namespace in the same cluster
destinations:
- namespace: avroid-prod
server: https://kubernetes.default.svc
# Deny all cluster-scoped resources from being created, except for Namespace
clusterResourceWhitelist:
- group: ''
kind: Namespace

View File

@@ -0,0 +1,19 @@
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: plantuml-in
namespace: avroid-prod
labels:
app.kubernetes.io/managed-by: argocd
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: plantuml
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: ingress-nginx

View File

@@ -0,0 +1,41 @@
# https://github.com/stevehipwell/helm-charts/blob/main/charts/plantuml/values.yaml
image:
# -- Image repository for the default container.
repository: harbor.avroid.tech/docker-hub-proxy/plantuml/plantuml-server
ingress:
# -- If `true`, create an `Ingress` resource.
enabled: true
# -- Ingress annotations.
annotations:
kubernetes.io/ingress.class: nginx
ingressClassName: "nginx"
# -- (list) Ingress hosts.
# @default -- See _values.yaml_
hosts:
- plantuml.avroid.tech
# -- (string) Ingress path.
path: /
# -- (list) Ingress TLS.
# @default -- See _values.yaml_
tls: []
# - hosts:
# - plantuml.local
# secretName: plantuml-tls
# -- Number of replicas to create if `autoscaling.enabled` is `false`.
replicaCount: 2
# -- Resources for the default container.
resources:
requests:
cpu: 200m
memory: 1024Mi
limits:
cpu: 1000m
memory: 2048Mi
# -- Node labels to match for pod scheduling.
nodeSelector:
node-role.kubernetes.io/worker: ""