Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions config/apiserver/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
maxUnavailable: 0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hahaha

type: RollingUpdate
template:
metadata:
Expand Down Expand Up @@ -83,6 +83,7 @@ spec:
- --events-provider-timeout=$(EVENTS_PROVIDER_TIMEOUT)
- --events-provider-retries=$(EVENTS_PROVIDER_RETRIES)
- --events-forward-extras=$(EVENTS_FORWARD_EXTRAS)
- --shutdown-delay-duration=$(SHUTDOWN_DELAY_DURATION)
env:
# Feature gates configuration
# Sessions and UserIdentities are GA (enabled by default)
Expand Down Expand Up @@ -184,6 +185,8 @@ spec:
value: "3"
- name: EVENTS_FORWARD_EXTRAS
value: "iam.miloapis.com/parent-api-group,iam.miloapis.com/parent-type,iam.miloapis.com/parent-name"
- name: SHUTDOWN_DELAY_DURATION
value: "10s"
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down Expand Up @@ -211,11 +214,11 @@ spec:
timeoutSeconds: 15
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
cpu: 200m
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
startupProbe:
failureThreshold: 30
httpGet:
Expand Down
1 change: 1 addition & 0 deletions config/apiserver/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ kind: Kustomization
resources:
- deployment.yaml
- service.yaml
- pdb.yaml
9 changes: 9 additions & 0 deletions config/apiserver/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: milo-apiserver
spec:
maxUnavailable: 20%
selector:
matchLabels:
app.kubernetes.io/name: milo-apiserver
37 changes: 37 additions & 0 deletions config/components/gateway-api/backend-traffic-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: BackendTrafficPolicy
metadata:
name: milo-apiserver
namespace: milo-system
spec:
targetRefs:
- group: gateway.networking.k8s.io
kind: HTTPRoute
name: milo-apiserver
retry:
numRetries: 3
retryOn:
triggers:
- gateway-error
- connect-failure
- reset
perRetry:
backOff:
baseInterval: 100ms
maxInterval: 1s
timeout: 2s
healthCheck:
active:
type: HTTP
http:
path: /readyz
interval: 5s
timeout: 3s
unhealthyThreshold: 2
healthyThreshold: 1
passive:
consecutive5XxErrors: 2
consecutiveGatewayErrors: 1
interval: 3s
baseEjectionTime: 15s
maxEjectionPercent: 33
1 change: 1 addition & 0 deletions config/components/gateway-api/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kind: Component
resources:
- httproute.yaml
- backend-tls-policy.yaml
- backend-traffic-policy.yaml
Loading