agones.dev/agones@v1.54.0/examples/webhookfleetautoscalertls.yaml (about)

     1  ---
     2  # Copyright 2018 Google LLC All Rights Reserved.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  
    16  #
    17  # Full example of a FleetAutoscaler - this is used to scale a Fleet
    18  # automatically depending on load
    19  #
    20  
    21  #
    22  # For a full reference and details: https://agones.dev/site/docs/reference/fleetautoscaler/
    23  #
    24  apiVersion: autoscaling.agones.dev/v1
    25  kind: FleetAutoscaler
    26  metadata:
    27    name: webhook-fleetautoscaler-tls
    28  spec:
    29    fleetName: simple-game-server
    30    policy:
    31      # type of the policy - this example is Webhook
    32      type: Webhook
    33      # parameters for the webhook policy - this is a WebhookClientConfig, as per other K8s webhooks
    34      webhook:
    35        # use a service, or URL
    36        # optional for URL defined webhooks
    37        url: https://autoscaler-tls-service.default.svc:8000/scale
    38        # optional, if you want to provide your own ca cert to test against
    39        caBundle: $CA_BUNDLE