mirror of https://github.com/k3s-io/k3s
fix typo in cluster
parent
230726ffbe
commit
9b64650311
|
@ -86,7 +86,7 @@ func main() {
|
||||||
serviceName = "elasticsearch-logging"
|
serviceName = "elasticsearch-logging"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Look for endpoints associated with the Elasticsearch loggging service.
|
// Look for endpoints associated with the Elasticsearch logging service.
|
||||||
// First wait for the service to become available.
|
// First wait for the service to become available.
|
||||||
for t := time.Now(); time.Since(t) < 5*time.Minute; time.Sleep(10 * time.Second) {
|
for t := time.Now(); time.Since(t) < 5*time.Minute; time.Sleep(10 * time.Second) {
|
||||||
elasticsearch, err = client.Core().Services(namespace).Get(serviceName, metav1.GetOptions{})
|
elasticsearch, err = client.Core().Services(namespace).Get(serviceName, metav1.GetOptions{})
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# Common utilites for kube-up/kube-down
|
# Common utilities for kube-up/kube-down
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
|
|
|
@ -3,7 +3,7 @@ kind: PodSecurityPolicy
|
||||||
metadata:
|
metadata:
|
||||||
name: gce.unprivileged-addon
|
name: gce.unprivileged-addon
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/description: 'This policy grants the minimum ammount of
|
kubernetes.io/description: 'This policy grants the minimum amount of
|
||||||
privilege necessary to run non-privileged kube-system pods. This policy is
|
privilege necessary to run non-privileged kube-system pods. This policy is
|
||||||
not intended for use outside of kube-system, and may include further
|
not intended for use outside of kube-system, and may include further
|
||||||
restrictions in the future.'
|
restrictions in the future.'
|
||||||
|
|
|
@ -39,7 +39,7 @@ NODE_DISK_SIZE=${NODE_DISK_SIZE:-100GB}
|
||||||
NODE_LOCAL_SSDS=${NODE_LOCAL_SSDS:-0}
|
NODE_LOCAL_SSDS=${NODE_LOCAL_SSDS:-0}
|
||||||
# An extension to local SSDs allowing users to specify block/fs and SCSI/NVMe devices
|
# An extension to local SSDs allowing users to specify block/fs and SCSI/NVMe devices
|
||||||
# Format of this variable will be "#,scsi/nvme,block/fs" you can specify multiple
|
# Format of this variable will be "#,scsi/nvme,block/fs" you can specify multiple
|
||||||
# configurations by seperating them by a semi-colon ex. "2,scsi,fs;1,nvme,block"
|
# configurations by separating them by a semi-colon ex. "2,scsi,fs;1,nvme,block"
|
||||||
# is a request for 2 SCSI formatted and mounted SSDs and 1 NVMe block device SSD.
|
# is a request for 2 SCSI formatted and mounted SSDs and 1 NVMe block device SSD.
|
||||||
NODE_LOCAL_SSDS_EXT=${NODE_LOCAL_SSDS_EXT:-}
|
NODE_LOCAL_SSDS_EXT=${NODE_LOCAL_SSDS_EXT:-}
|
||||||
# Accelerators to be attached to each node. Format "type=<accelerator-type>,count=<accelerator-count>"
|
# Accelerators to be attached to each node. Format "type=<accelerator-type>,count=<accelerator-count>"
|
||||||
|
|
|
@ -39,7 +39,7 @@ NODE_DISK_SIZE=${NODE_DISK_SIZE:-100GB}
|
||||||
NODE_LOCAL_SSDS=${NODE_LOCAL_SSDS:-0}
|
NODE_LOCAL_SSDS=${NODE_LOCAL_SSDS:-0}
|
||||||
# An extension to local SSDs allowing users to specify block/fs and SCSI/NVMe devices
|
# An extension to local SSDs allowing users to specify block/fs and SCSI/NVMe devices
|
||||||
# Format of this variable will be "#,scsi/nvme,block/fs" you can specify multiple
|
# Format of this variable will be "#,scsi/nvme,block/fs" you can specify multiple
|
||||||
# configurations by seperating them by a semi-colon ex. "2,scsi,fs;1,nvme,block"
|
# configurations by separating them by a semi-colon ex. "2,scsi,fs;1,nvme,block"
|
||||||
# is a request for 2 SCSI formatted and mounted SSDs and 1 NVMe block device SSD.
|
# is a request for 2 SCSI formatted and mounted SSDs and 1 NVMe block device SSD.
|
||||||
NODE_LOCAL_SSDS_EXT=${NODE_LOCAL_SSDS_EXT:-}
|
NODE_LOCAL_SSDS_EXT=${NODE_LOCAL_SSDS_EXT:-}
|
||||||
NODE_ACCELERATORS=${NODE_ACCELERATORS:-""}
|
NODE_ACCELERATORS=${NODE_ACCELERATORS:-""}
|
||||||
|
|
|
@ -34,7 +34,7 @@ spec:
|
||||||
name: logfile
|
name: logfile
|
||||||
readOnly: false
|
readOnly: false
|
||||||
resources:
|
resources:
|
||||||
# Request is set to accomodate this pod alongside the other
|
# Request is set to accommodate this pod alongside the other
|
||||||
# master components on a single core master.
|
# master components on a single core master.
|
||||||
# TODO: Make resource requirements depend on the size of the cluster
|
# TODO: Make resource requirements depend on the size of the cluster
|
||||||
requests:
|
requests:
|
||||||
|
|
|
@ -40,7 +40,7 @@ function usage() {
|
||||||
echo " -N: Upgrade nodes only"
|
echo " -N: Upgrade nodes only"
|
||||||
echo " -P: Node upgrade prerequisites only (create a new instance template)"
|
echo " -P: Node upgrade prerequisites only (create a new instance template)"
|
||||||
echo " -c: Upgrade NODE_UPGRADE_PARALLELISM nodes in parallel (default=1) within a single instance group. The MIGs themselves are dealt serially."
|
echo " -c: Upgrade NODE_UPGRADE_PARALLELISM nodes in parallel (default=1) within a single instance group. The MIGs themselves are dealt serially."
|
||||||
echo " -o: Use os distro sepcified in KUBE_NODE_OS_DISTRIBUTION for new nodes. Options include 'debian' or 'gci'"
|
echo " -o: Use os distro specified in KUBE_NODE_OS_DISTRIBUTION for new nodes. Options include 'debian' or 'gci'"
|
||||||
echo " -l: Use local(dev) binaries. This is only supported for master upgrades."
|
echo " -l: Use local(dev) binaries. This is only supported for master upgrades."
|
||||||
echo ""
|
echo ""
|
||||||
echo ' Version number or publication is either a proper version number'
|
echo ' Version number or publication is either a proper version number'
|
||||||
|
|
|
@ -9,7 +9,7 @@ For etcd 3.1+, the
|
||||||
[go-grpc-prometheus](https://github.com/grpc-ecosystem/go-grpc-prometheus)
|
[go-grpc-prometheus](https://github.com/grpc-ecosystem/go-grpc-prometheus)
|
||||||
metrics format, which backward incompatibly replaces the 3.0 legacy grpc metric
|
metrics format, which backward incompatibly replaces the 3.0 legacy grpc metric
|
||||||
format, is exposed in both the 3.1 format and in the 3.0. This preserves
|
format, is exposed in both the 3.1 format and in the 3.0. This preserves
|
||||||
backward compatiblity.
|
backward compatibility.
|
||||||
|
|
||||||
For etcd 3.1+, the `--metrics=extensive` must be set on etcd for grpc request
|
For etcd 3.1+, the `--metrics=extensive` must be set on etcd for grpc request
|
||||||
latency metrics (`etcd_grpc_unary_requests_duration_seconds`) to be exposed.
|
latency metrics (`etcd_grpc_unary_requests_duration_seconds`) to be exposed.
|
||||||
|
|
|
@ -60,7 +60,7 @@ def main():
|
||||||
if not validate_space(context['RBD_SIZE']):
|
if not validate_space(context['RBD_SIZE']):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Ensure our paramters match
|
# Ensure our parameters match
|
||||||
param_validation = validate_parameters(context['RBD_NAME'],
|
param_validation = validate_parameters(context['RBD_NAME'],
|
||||||
context['RBD_FS'],
|
context['RBD_FS'],
|
||||||
context['PV_MODE'])
|
context['PV_MODE'])
|
||||||
|
|
|
@ -739,7 +739,7 @@ def kubectl(*args):
|
||||||
|
|
||||||
|
|
||||||
def kubectl_success(*args):
|
def kubectl_success(*args):
|
||||||
''' Runs kubectl with the given args. Returns True if succesful, False if
|
''' Runs kubectl with the given args. Returns True if successful, False if
|
||||||
not. '''
|
not. '''
|
||||||
try:
|
try:
|
||||||
kubectl(*args)
|
kubectl(*args)
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# b) in case of etcd3
|
# b) in case of etcd3
|
||||||
# $ etcdctl --endpoints=<address> snapshot save
|
# $ etcdctl --endpoints=<address> snapshot save
|
||||||
# produced .db file
|
# produced .db file
|
||||||
# - version.txt file is in the current directy (if it isn't it will be
|
# - version.txt file is in the current directory (if it isn't it will be
|
||||||
# defaulted to "2.2.1/etcd2"). Based on this file, the script will
|
# defaulted to "2.2.1/etcd2"). Based on this file, the script will
|
||||||
# decide to which version we are restoring (procedures are different
|
# decide to which version we are restoring (procedures are different
|
||||||
# for etcd2 and etcd3).
|
# for etcd2 and etcd3).
|
||||||
|
|
Loading…
Reference in New Issue