Require rgw host spread, add VPA, drop redundant setuser
This commit is contained in:
@@ -46,7 +46,7 @@ spec:
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: kubernetes.io/hostname
|
||||
whenUnsatisfiable: ScheduleAnyway
|
||||
whenUnsatisfiable: DoNotSchedule
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: rgw
|
||||
@@ -61,10 +61,6 @@ spec:
|
||||
- ceph
|
||||
- --name
|
||||
- client.rgw.syd1
|
||||
- --setuser
|
||||
- ceph
|
||||
- --setgroup
|
||||
- ceph
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 7480
|
||||
|
||||
@@ -10,3 +10,4 @@ resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- pdb.yaml
|
||||
- vpa.yaml
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
---
|
||||
# Seed kv/kubernetes/namespace/ceph-system/default/rgw-keyring field `keyring` with the client.rgw.syd1 keyring.
|
||||
apiVersion: secrets.hashicorp.com/v1beta1
|
||||
kind: VaultStaticSecret
|
||||
metadata:
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: autoscaling.k8s.io/v1
|
||||
kind: VerticalPodAutoscaler
|
||||
metadata:
|
||||
name: rgw-vpa
|
||||
namespace: ceph-system
|
||||
spec:
|
||||
targetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: rgw
|
||||
updatePolicy:
|
||||
updateMode: "Off"
|
||||
Reference in New Issue
Block a user