[DO-1600] Move karma to new namespace (!33)
[DO-1600] Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech> Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/33
This commit is contained in:
@@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: karma
|
|
||||||
labels:
|
|
||||||
name: karma
|
|
||||||
app.kubernetes.io/managed-by: argocd
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "-1"
|
|
||||||
scheduler.alpha.kubernetes.io/node-selector: node-role.kubernetes.io/worker=
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ResourceQuota
|
|
||||||
metadata:
|
|
||||||
name: karma
|
|
||||||
namespace: karma
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/managed-by: argocd
|
|
||||||
spec:
|
|
||||||
hard:
|
|
||||||
requests.cpu: "0.5"
|
|
||||||
requests.memory: 1Gi
|
|
||||||
limits.cpu: "1"
|
|
||||||
limits.memory: 2Gi
|
|
||||||
@@ -10,17 +10,17 @@ spec:
|
|||||||
project: karma
|
project: karma
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: karma
|
namespace: prod
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://git.avroid.tech/K8s/k8s-configs.git
|
- repoURL: https://git.avroid.tech/K8s/k8s-configs.git
|
||||||
targetRevision: master
|
targetRevision: master
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://wiremind.github.io/wiremind-helm-charts
|
- repoURL: https://nexus.avroid.tech/repository/devops-helm-proxy-helm/
|
||||||
chart: "karma"
|
chart: "wiremind/karma"
|
||||||
targetRevision: 2.9.3
|
targetRevision: 2.9.3
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/clusters/k8s-avroid-office.prod.local/namespaces/karma/values.yaml
|
- $values/clusters/k8s-avroid-office.prod.local/namespaces/prod/karma/values-ovveride.yaml
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
@@ -39,11 +39,11 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
sourceRepos:
|
sourceRepos:
|
||||||
- https://wiremind.github.io/wiremind-helm-charts
|
|
||||||
- https://git.avroid.tech/K8s/k8s-configs.git
|
- 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
|
# Only permit applications to deploy to the guestbook namespace in the same cluster
|
||||||
destinations:
|
destinations:
|
||||||
- namespace: karma
|
- namespace: prod
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
# Deny all cluster-scoped resources from being created, except for Namespace
|
# Deny all cluster-scoped resources from being created, except for Namespace
|
||||||
clusterResourceWhitelist:
|
clusterResourceWhitelist:
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: karma-in
|
||||||
|
namespace: prod
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: argocd
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: karma
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: ingress-nginx
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: karma-out
|
||||||
|
namespace: prod
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: argocd
|
||||||
|
spec:
|
||||||
|
podSelector: {}
|
||||||
|
policyTypes:
|
||||||
|
- Egress
|
||||||
|
ingress: []
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
# h-mon.avroid.tech
|
||||||
|
cidr: 10.18.3.27/32
|
||||||
|
ports:
|
||||||
|
- port: 9093
|
||||||
|
protocol: TCP
|
||||||
Reference in New Issue
Block a user