Skip to content
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

add yaml deploy files #94

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qiliRedHat
Copy link
Contributor

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

Deploy dittybopper with yaml files.

Related Tickets & Documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please describe the System Under Test.
  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

@qiliRedHat qiliRedHat marked this pull request as draft November 22, 2023 14:16
@qiliRedHat
Copy link
Contributor Author

qiliRedHat commented Nov 22, 2023

This is not fully working now
Partially working steps:

oc create -f dittybopper_ns.yaml
oc create -f dittybopper_sa.yaml
oc create -f dittybopper_rolebinding.yaml
----manual steps start----
% oc get secret -n dittybopper | grep dittybopper-token
dittybopper-token-xxxxx kubernetes.io/service-account-token 4 115s

% oc get secret/dittybopper-token-xxxxx -n dittybopper -o json | jq -r ".data.token" | base64 --decode

%oc get routes -n openshift-monitoring prometheus-k8s -o jsonpath="{.spec.host}"
<PROMETHEUS_URL>

In dittybopper.yaml replace the ${PROMETHEUS_URL} and ${TOKEN} with the above token
----manual steps end----
oc create -f dittybopper.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant