mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
vendor files
This commit is contained in:
54
vendor/k8s.io/kubernetes/test/kubemark/pre-existing/README.md
generated
vendored
Normal file
54
vendor/k8s.io/kubernetes/test/kubemark/pre-existing/README.md
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
# Kubemark Pre-existing Provider Guide
|
||||
|
||||
**Kubemark Master**
|
||||
- A set of Kubernetes control plane components running in a VM
|
||||
|
||||
**Kubernetes Cluster**
|
||||
- A real Kubernetes Cluster that has master and nodes. The hollow-node pods
|
||||
are run in this cluster, but appear as nodes to the Kubemark Master
|
||||
|
||||
## Introduction
|
||||
|
||||
Every running Kubemark setup looks like the following:
|
||||
1) A running Kubernetes cluster pointed to by the local kubeconfig
|
||||
2) A separate VM where the kubemark master is running
|
||||
3) Some hollow-nodes that run on the Kubernetes Cluster from #1
|
||||
4) The hollow-nodes are configured to talk with the kubemark master at #2
|
||||
|
||||
When using the pre-existing provider, the developer is responsible for creating
|
||||
#1 and #2. Therefore, the kubemark scripts will not create any infrastructure
|
||||
or start a kubemark master like in other providers. Instead, the existing
|
||||
resources provided by the VM at $MASTER_IP will serve as the kubemark master.
|
||||
|
||||
## Use Case
|
||||
|
||||
The goal of the pre-existing provider is to use the kubemark tools with an
|
||||
existing kubermark master. It's meant to provide the developer with
|
||||
additional flexibility to customize the cluster infrastructure and still use
|
||||
the kubemark setup tools. The pre-existing provider is an **advanced** use
|
||||
case that requires the developer to have knowledge of setting up a kubemark
|
||||
master.
|
||||
|
||||
## Requirements
|
||||
|
||||
To use the pre-existing provider, the expectation is that there's a kubemark
|
||||
master that is rechable at $MASTER_IP. The machine that the kubemark master is
|
||||
on has to be ssh able from the host that's executing the kubemark scripts. And
|
||||
the user on that machine has to be 'kubernetes'.
|
||||
|
||||
Requirement checklist:
|
||||
- Set MASTER_IP to ip address to the kubemark master
|
||||
- The host where you execute the kubemark scripts must be able to ssh to
|
||||
kubernetes@$MASTER_IP
|
||||
|
||||
## Example Configuration
|
||||
|
||||
_test/kubemark/cloud-provider-config.sh_
|
||||
|
||||
```
|
||||
CLOUD_PROVIDER="pre-existing"
|
||||
KUBEMARK_IMAGE_MAKE_TARGET="push"
|
||||
CONTAINER_REGISTRY=docker.io
|
||||
PROJECT="rthallisey"
|
||||
MASTER_IP="192.168.121.29:6443"
|
||||
```
|
27
vendor/k8s.io/kubernetes/test/kubemark/pre-existing/util.sh
generated
vendored
Normal file
27
vendor/k8s.io/kubernetes/test/kubemark/pre-existing/util.sh
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright 2017 The Kubernetes Authors.
|
||||
#
|
||||
# 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.
|
||||
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../../..
|
||||
|
||||
source "${KUBE_ROOT}/test/kubemark/common/util.sh"
|
||||
|
||||
# Leave the skeleton definition of execute-cmd-on-master-with-retries
|
||||
# so only the pre-existing provider functions will target this.
|
||||
function execute-cmd-on-pre-existing-master-with-retries() {
|
||||
IP_WITHOUT_PORT=$(echo "${MASTER_IP}" | cut -f 1 -d ':') || "${MASTER_IP}"
|
||||
|
||||
RETRIES="${2:-1}" run-cmd-with-retries ssh kubernetes@"${IP_WITHOUT_PORT}" $1
|
||||
}
|
Reference in New Issue
Block a user