Skip to content

Instantly share code, notes, and snippets.

@aLekSer
Last active February 5, 2020 09:41
Show Gist options
  • Save aLekSer/f0da2fb8a5a43d170d0dd711bfbd6f33 to your computer and use it in GitHub Desktop.
Save aLekSer/f0da2fb8a5a43d170d0dd711bfbd6f33 to your computer and use it in GitHub Desktop.
kubectl apply -f fleetWithFAS.yaml; remove replicas, edit label ; kubectl apply -f fleetWithFAS.yaml - leads to no rolling updates
apiVersion: "agones.dev/v1"
kind: Fleet
metadata:
name: flat-example
spec:
replicas: 5
scheduling: Packed
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
foo: bazar
spec:
ports:
- name: default
portPolicy: Dynamic
containerPort: 26000
health:
initialDelaySeconds: 30
periodSeconds: 60
template:
spec:
containers:
- name: simple-udp
image: gcr.io/agones-images/udp-server:0.16
---
apiVersion: "autoscaling.agones.dev/v1"
kind: FleetAutoscaler
metadata:
name: server-autoscaler
spec:
fleetName: flat-example
policy:
type: Buffer
buffer:
bufferSize: 5
minReplicas: 5
maxReplicas: 10
@aLekSer
Copy link
Author

aLekSer commented Feb 5, 2020

kubectl apply -f fleetWithFAS.yaml;
remove replicas, edit label ;
kubectl apply -f fleetWithFAS.yaml
This steps leads to no rolling updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment