forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-new-cluster.sh
More file actions
executable file
·17 lines (16 loc) · 891 Bytes
/
create-new-cluster.sh
File metadata and controls
executable file
·17 lines (16 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# This file should be filled in by customers with the `kubectl` commands that should be run on
# new cluster creation.
#
# ./kubectl-apply-all.sh already runs all the `kubectl apply` commands
# that applies your YAML files to the cluster. In addition, you should add commands
# to create Kubernetes objects which satisfy one of the following conditions:
#
# * The object is a secret that shouldn't be committed to version control. (.e.g `kubectl create secret ...`)
# * The object will never be updated after creation. (e.g., a network load balancer - `kubectl expose ...`)
#
# Objects that do not meet the above criteria should NOT be created by this script. Instead, create
# a YAML file that can be `kubectl apply`d to the cluster, version that file in this repository, and add
# the relevant `kubectl apply` command to ./kubectl-apply-all.sh
./kubectl-apply-all.sh $@