refactor: refactor and gitopify

This commit is contained in:
2024-02-05 21:04:53 +01:00
parent 1bff28ab6c
commit 10a06fd058
21 changed files with 249 additions and 268 deletions
-23
View File
@@ -1,23 +0,0 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-atlantis-services
namespace: atlantis
spec:
egress:
- toEndpoints:
- matchLabels:
"k8s:io.kubernetes.pod.namespace": dapr-system
- toEndpoints:
- matchLabels:
"k8s:io.kubernetes.pod.namespace": redis
- toEndpoints:
- matchLabels:
"k8s:io.kubernetes.pod.namespace": rabbitmq
- toEndpoints:
- matchLabels:
"k8s:io.kubernetes.pod.namespace": jaeger
endpointSelector:
matchLabels: {}
-24
View File
@@ -1,24 +0,0 @@
apiVersion: jaegertracing.io/v1
kind: "Jaeger"
metadata:
name: jaeger
spec:
strategy: allInOne
ingress:
enabled: false
allInOne:
image: jaegertracing/all-in-one:1.13
options:
query:
base-path: /jaeger
---
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: tracing
spec:
tracing:
samplingRate: "1"
zipkin:
endpointAddress: "http://jaeger-collector:9411/api/v2/spans"
-46
View File
@@ -1,46 +0,0 @@
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: sync-atlantis-secrets
spec:
background: true
generateExistingOnPolicyUpdate: true
rules:
- name: sync-redis-secrets
generate:
apiVersion: v1
namespace: atlantis
synchronize: true
cloneList:
namespace: redis
kinds:
- Secret
selector:
matchLabels:
app.kubernetes.io/name: redis
match:
resources:
kinds:
- Namespace
names:
- atlantis
- name: sync-rabbitmq-secrets
generate:
apiVersion: v1
namespace: atlantis
synchronize: true
cloneList:
namespace: rabbitmq
kinds:
- Secret
selector:
matchLabels:
clone: "true"
match:
resources:
kinds:
- Namespace
names:
- atlantis
validationFailureAction: audit