- Addition of FLASK_ENV setting for all eveai services
- Addition of flower to the monitoring stack
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: flower-redis
|
||||
namespace: monitoring
|
||||
spec:
|
||||
refreshInterval: 300s
|
||||
secretStoreRef:
|
||||
name: scaleway-cluster-secret-store
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: flower-redis
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: REDIS_USER
|
||||
remoteRef:
|
||||
key: name:eveai-redis
|
||||
property: REDIS_USER
|
||||
- secretKey: REDIS_PASS
|
||||
remoteRef:
|
||||
key: name:eveai-redis
|
||||
property: REDIS_PASS
|
||||
- secretKey: REDIS_URL
|
||||
remoteRef:
|
||||
key: name:eveai-redis
|
||||
property: REDIS_URL
|
||||
- secretKey: REDIS_PORT
|
||||
remoteRef:
|
||||
key: name:eveai-redis
|
||||
property: REDIS_PORT
|
||||
---
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: flower-ca
|
||||
namespace: monitoring
|
||||
spec:
|
||||
refreshInterval: 300s
|
||||
secretStoreRef:
|
||||
name: scaleway-cluster-secret-store
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: flower-ca
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: REDIS_CERT
|
||||
remoteRef:
|
||||
key: name:eveai-redis-certificate # note: no property
|
||||
44
scaleway/manifests/base/monitoring/flower/networkpolicy.yaml
Normal file
44
scaleway/manifests/base/monitoring/flower/networkpolicy.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: flower-policy
|
||||
namespace: monitoring
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: flower
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
# Default deny all ingress by providing empty ingress rules
|
||||
ingress: []
|
||||
egress:
|
||||
# Allow egress to Redis (TLS) on specific IP and port
|
||||
- to:
|
||||
- ipBlock:
|
||||
cidr: 172.16.16.2/32
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 6379
|
||||
# Allow DNS queries to CoreDNS in kube-system (UDP 53)
|
||||
- to:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: kube-system
|
||||
podSelector:
|
||||
matchLabels:
|
||||
k8s-app: kube-dns
|
||||
ports:
|
||||
- protocol: UDP
|
||||
port: 53
|
||||
# Also allow TCP 53 (some resolvers use TCP for large responses)
|
||||
- to:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: kube-system
|
||||
podSelector:
|
||||
matchLabels:
|
||||
k8s-app: kube-dns
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 53
|
||||
@@ -3,6 +3,10 @@ kind: Kustomization
|
||||
|
||||
namespace: monitoring
|
||||
|
||||
resources:
|
||||
- flower/externalsecrets.yaml
|
||||
- flower/networkpolicy.yaml
|
||||
|
||||
helmCharts:
|
||||
- name: kube-prometheus-stack
|
||||
repo: https://prometheus-community.github.io/helm-charts
|
||||
|
||||
Reference in New Issue
Block a user