mirror of https://github.com/kubernetes/kops.git
commit
184d308944
|
@ -13,8 +13,16 @@ Currently this can only be a single CIDR.
|
|||
|
||||
Examples:
|
||||
|
||||
CLI:
|
||||
`--admin-access=18.0.0.0/8` to restrict to IPs in the 18.0.0.0/8 CIDR
|
||||
|
||||
YAML:
|
||||
|
||||
```
|
||||
spec:
|
||||
adminAccess:
|
||||
- 18.0.0.0/8
|
||||
```
|
||||
|
||||
## dns-zone
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# kops Core Concepts
|
||||
|
||||
## StateStore
|
||||
|
||||
## Clusters
|
||||
|
||||
## InstanceGroups
|
||||
|
||||
## KeyStore & SecretStore
|
||||
|
||||
Both for bootstrapping reasons, but also because we likely want security
|
|
@ -0,0 +1,51 @@
|
|||
****************
|
||||
Work in progress
|
||||
****************
|
||||
|
||||
|
||||
Notes:
|
||||
|
||||
* Only works if you haven't made changes to the kube_env.yaml file (which includes assets)
|
||||
|
||||
|
||||
## Procedure
|
||||
|
||||
To get the external IPs of all nodes:
|
||||
|
||||
```
|
||||
IPS=`kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="ExternalIP")].address}'`
|
||||
echo $IPS
|
||||
```
|
||||
|
||||
Then to apply updates:
|
||||
|
||||
```
|
||||
for ip in $IPS; do
|
||||
|
||||
echo "Updating ${ip}"
|
||||
|
||||
echo "Sleeping for 30 seconds first"
|
||||
sleep 30
|
||||
|
||||
cat <<'EOF' | ssh admin@${ip} 'sudo bash -s'
|
||||
#/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
NODEUP_TAR_URL=https://kubeupv2.s3.amazonaws.com/nodeup/nodeup-1.3.tar.gz
|
||||
NODEUP_TAR=nodeup-1.3.tar.gz
|
||||
|
||||
INSTALL_DIR="/var/cache/kubernetes-install"
|
||||
mkdir -p ${INSTALL_DIR}
|
||||
cd ${INSTALL_DIR}
|
||||
|
||||
curl -f --ipv4 -Lo "${NODEUP_TAR}" --connect-timeout 20 --retry 6 --retry-delay 10 "${NODEUP_TAR_URL}"
|
||||
rm -rf nodeup
|
||||
tar zxf ${NODEUP_TAR}
|
||||
|
||||
( cd nodeup/root; ./nodeup --conf=/var/cache/kubernetes-install/kube_env.yaml --v=8 )
|
||||
EOF
|
||||
|
||||
done
|
||||
|
||||
echo "Done!"
|
||||
```
|
Loading…
Reference in New Issue