{#
Copyright 2017 Google Inc. All rights reserved.
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.
#}

resources:
- name: test-cluster
  type: container.v1.cluster
  properties:
    zone: {{ properties["zone"] }}
    cluster:
      name: test-cluster
      description: Test cluster for Agon
      nodePools:
        - name: "default"
          initialNodeCount: 3
          config:
            machineType: n1-standard-4
            tags:
              - game-server
            oauthScopes:
              - https://www.googleapis.com/auth/devstorage.read_only
              - https://www.googleapis.com/auth/compute
              - https://www.googleapis.com/auth/cloud-platform
      masterAuth:
        username: admin
        password: supersecret
- name: game-server-firewall
  type: compute.beta.firewall
  properties:
    name: game-server
    description: "Firewall to allow game server udp traffic"
    targetTags:
      - "game-server"
    allowed:
      - IPProtocol: udp
        ports:
          - "7000-8000"
{#
Copyright 2017 Google Inc. All rights reserved.
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.
#}

resources:
- name: test-cluster
  type: container.v1.cluster
  properties:
    zone: {{ properties["zone"] }}
    cluster:
      name: test-cluster
      description: Test cluster for Agon
      nodePools:
        - name: "default"
          initialNodeCount: 3
          config:
            machineType: n1-standard-4
            tags:
              - game-server
            oauthScopes:
              - https://www.googleapis.com/auth/devstorage.read_only
              - https://www.googleapis.com/auth/compute
              - https://www.googleapis.com/auth/cloud-platform
      masterAuth:
        username: admin
        password: supersecretpassword
- name: game-server-firewall
  type: compute.beta.firewall
  properties:
    name: game-server
    description: "Firewall to allow game server udp traffic"
    targetTags:
      - "game-server"
    allowed:
      - IPProtocol: udp
        ports:
          - "7000-8000"

Update gke-test-cluster admin password to new minimum length 16 chars.
Update gke-test-cluster admin password to new minimum length 16 chars.
