File size: 2,125 Bytes
775cdeb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeBackendService
metadata:
  name: computebackendservice-sample-internalmanagedloadbalancing
spec:
  description: Internal managed backend service with Maglev session affinity.
  localityLbPolicy: MAGLEV
  timeoutSec: 86400
  consistentHash:
    httpHeaderName: "Hash string"
  healthChecks:
  - healthCheckRef:
      name: computebackendservice-dep-internalmanagedloadbalancing
  loadBalancingScheme: INTERNAL_MANAGED
  location: us-east1
  protocol: HTTP
  connectionDrainingTimeoutSec: 10
  sessionAffinity: HEADER_FIELD
  circuitBreakers:
    connectTimeout:
      nanos: 999999999
      seconds: 0
    maxConnections: 1024
    maxPendingRequests: 1024
    maxRequests: 1024
    maxRequestsPerConnection: 1
    maxRetries: 3
  logConfig:
    enable: false
  outlierDetection:
    consecutiveGatewayFailure: 5
    enforcingConsecutiveErrors: 100
    enforcingSuccessRate: 100
    successRateMinimumHosts: 5
    successRateRequestVolume: 100
    baseEjectionTime:
      nanos: 999999999
      seconds: 29
    consecutiveErrors: 5
    enforcingConsecutiveGatewayFailure: 0
    interval:
      nanos: 999999999
      seconds: 9
    maxEjectionPercent: 10
    successRateStdevFactor: 1900
  backend:
  - balancingMode: RATE
    capacityScaler: 0.9
    description: An instance group serving this backend with 90% of its capacity, as calculated by requests per second.
    maxRate: 10000
    group:
      instanceGroupRef:
        name: computebackendservice-dep-internalmanagedloadbalancing