-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move perfdash under /apps #2317
Merged
k8s-ci-robot
merged 4 commits into
kubernetes:main
from
jimdaga:issue-2150/move-perfdash
Jul 9, 2021
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## How to deploy Perfdash | ||
|
||
To bootstrap [Perfdash](https://github.com/kubernetes/perf-tests/tree/master/perfdash): | ||
|
||
- Have [access](https://github.com/kubernetes/k8s.io/blob/main/running-in-community-clusters.md) to the GKE cluster `aaa`. | ||
|
||
- From the `apps/perfdash` directory run: | ||
```console | ||
./deploy.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2021 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. | ||
|
||
# Deploys this app to the aaa cluster, or whatever cluster is pointed to | ||
# by KUBECTL_CONTEXT if set. Assumes the app's namespace already exists. | ||
# | ||
# Members of k8s-infra-rbac-${app}@kubernetes.io can run this. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
SCRIPT_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P) | ||
|
||
app=$(basename "${SCRIPT_ROOT}") | ||
|
||
# coordinates to locate the target cluster in gke | ||
cluster_name="aaa" | ||
cluster_project="kubernetes-public" | ||
cluster_region="us-central1" | ||
|
||
# coordinates to locate the app on the target cluster | ||
namespace="${app}" | ||
|
||
# custom var(s) specific to this apps deployment | ||
perfdash_repo_url="https://raw.githubusercontent.com/kubernetes/perf-tests/master/perfdash" | ||
|
||
# well known name set by `gcloud container clusters get-credentials` | ||
gke_context="gke_${cluster_project}_${cluster_region}_${cluster_name}" | ||
context="${KUBECTL_CONTEXT:-${gke_context}}" | ||
|
||
# ensure we have a context to talk to the target cluster | ||
if ! kubectl config get-contexts "${context}" >/dev/null 2>&1; then | ||
gcloud container clusters get-credentials "${cluster_name}" --project="${cluster_project}" --region="${cluster_region}" | ||
context="${gke_context}" | ||
fi | ||
|
||
# deploy kubernetes resources | ||
pushd "${SCRIPT_ROOT}" >/dev/null | ||
kubectl --context="${context}" --namespace="${namespace}" apply -f "${perfdash_repo_url}/deployment.yaml" | ||
kubectl --context="${context}" --namespace="${namespace}" apply -f "${perfdash_repo_url}/perfdash-service.yaml" | ||
kubectl --context="${context}" --namespace="${namespace}" apply -f . |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, TIL this is how it's always been for this app, so I won't blow your PR's scope. But these files should live here (I was thinking in the direction of a postsubmit job that could run the relevant deploy.sh if any app's files changed). Not a fan of deploy scripts that will deploy something different depending on the time of day they're run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @mborsz @mm4tt @jprzychodzen