Skip to content

Commit

Permalink
config: add elastx specific config
Browse files Browse the repository at this point in the history
  • Loading branch information
davidumea committed Feb 21, 2025
1 parent 395e779 commit e686519
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 5 deletions.
22 changes: 17 additions & 5 deletions config/providers/elastx/common-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ networkPolicies:
openstack:
enabled: true
ips:
- set-me
- 217.61.244.51/32
- 217.61.244.53/32
- 217.61.244.55/32
ports:
- 5000
- 8774
Expand All @@ -22,19 +24,29 @@ networkPolicies:
objectStorage:
type: s3
s3:
region: set-me
regionEndpoint: set-me
region: us-east-1
regionEndpoint: https://swift.elastx.cloud
forcePathStyle: true
ingressNginx:
controller:
config:
useProxyProtocol: false
useProxyProtocol: true
useHostPort: false
service:
enabled: true
type: LoadBalancer
annotations: {}
annotations:
loadbalancer.openstack.org/proxy-protocol: "true"
allocateLoadBalancerNodePorts: true
opa:
rejectLoadBalancerService:
enabled: false
controllerManager:
topologySpreadConstraints:
- labelSelector:
matchLabels:
app: gatekeeper
control-plane: controller-manager
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
127 changes: 127 additions & 0 deletions config/providers/elastx/sc-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,130 @@ objectStorage:
thanos:
objectStorage:
type: swift
receiver:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: topology.kubernetes.io/zone
operator: In
values:
- sto1
- sto2
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: receive
app.kubernetes.io/instance: thanos-receiver
app.kubernetes.io/name: thanos
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
- labelSelector:
matchLabels:
app.kubernetes.io/component: receive
app.kubernetes.io/instance: thanos-receiver
app.kubernetes.io/name: thanos
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
ruler:
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos-receiver
app.kubernetes.io/component: ruler
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
- labelSelector:
matchLabels:
app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos-receiver
app.kubernetes.io/component: ruler
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
query:
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/component: query
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
- labelSelector:
matchLabels:
app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/component: query
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
opensearch:
masterNode:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
topologyKey: topology.kubernetes.io/zone
weight: 1
dataNode:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
topologyKey: topology.kubernetes.io/zone
weight: 1
clientNode:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
topologyKey: topology.kubernetes.io/zone
weight: 1
dex:
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/name: dex
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
- labelSelector:
matchLabels:
app.kubernetes.io/name: dex
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
prometheus:
alertmanagerSpec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: topology.kubernetes.io/zone
operator: In
values:
- sto1
- sto2
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: kube-prometheus-stack-alertmanager
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
- labelSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: kube-prometheus-stack-alertmanager
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
9 changes: 9 additions & 0 deletions config/providers/elastx/wc-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
hnc:
webhook:
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: hnc-webhook
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule

0 comments on commit e686519

Please sign in to comment.