Skip to content

Instantly share code, notes, and snippets.

View RobertKielty's full-sized avatar
🌎
🏠

Robert Kielty RobertKielty

🌎
🏠
View GitHub Profile
@RobertKielty
RobertKielty / gitops-for-helm-users.md
Last active January 2, 2025 12:47 — forked from scottrigby/gitops-for-helm-users.md
GitOps for Helm Users

Setting up FluxCD on Oracle Cloud Infrastructure

Overview

Instructions for installing Flux on an OKE Cluster. Start by installing the flux cli tool on the Cloud Shell which has no sudo access and a downrev version of go. The standard instructions for using the flux cli install script cannot be followed exactly but with some tweaks we can make it work for Oracle Cloud

Thanks to @scottrigby for sharing their original version of this with me!

Outline

  1. Install Flux CLI
@RobertKielty
RobertKielty / kube-prometheus-stack-README.MD
Last active November 4, 2024 08:50
helm show readme prometheus-community/kube-prometheus-stack

kube-prometheus-stack

Installs the kube-prometheus stack, a collection of Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator.

See the kube-prometheus README for details about components, dashboards, and alerts.

Note: This chart was formerly named prometheus-operator chart, now renamed to more clearly reflect that it installs the kube-prometheus project stack, within which Prometheus Operator is only one component.

Prerequisites

@RobertKielty
RobertKielty / kube-prometheus-stack-default-values.yaml
Last active November 4, 2024 08:49
helm show values prometheus-community/kube-prometheus-stack
# Default values for kube-prometheus-stack.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
## Provide a name in place of kube-prometheus-stack for `app:` labels
##
nameOverride: ""
## Override the deployment namespace
##

This is the response to /metrics on GitHub's ARC gha-rs-controller

k get pods | grep gha | awk '{print $1}' k port-forward cncf-gha-controller-gha-rs-controller-798bd5b854-86vmt 8080:8080

HELP certwatcher_read_certificate_errors_total Total number of certificate read errors

TYPE certwatcher_read_certificate_errors_total counter

certwatcher_read_certificate_errors_total 0

HELP certwatcher_read_certificate_total Total number of certificate reads

@RobertKielty
RobertKielty / ca-h.txt
Created October 23, 2024 20:07
/cluster-autoscaler -h from v1.31.0
docker run registry.k8s.io/autoscaling/cluster-autoscaler:v1.31.0 /cluster-autoscaler -h
Usage of /cluster-autoscaler:
pflag: help requested
--add-dir-header If true, adds the file directory to the header of the log messages
--address string The address to expose prometheus metrics. (default ":8085")
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
--async-node-groups Whether clusterautoscaler creates and deletes node groups asynchronously. Experimental: requires cloud provider supporting async node group operations, enable at your own risk.
--aws-use-static-instance-list Should CA fetch instance types in runtime or use a static list. AWS only
--balance-similar-node-groups
@RobertKielty
RobertKielty / README.md
Created June 23, 2023 07:44 — forked from maelvls/README.md
Ubuntu, libsecret, git-credential-helper

Dealing with secrets

GNOME comes with libsecret. You can use libsecret to store your git credentials:

sudo apt install libsecret-1-0 libsecret-1-dev libglib2.0-dev
sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret

What's the easiest way to have a family collaborate on capturing their genalogy?

ChatGPT

The easiest way to have a family collaborate on capturing their genealogy would be to use a genealogy software or an online family tree platform that allows multiple users to access and contribute to the family tree. Here are the steps you can follow:

Choose a genealogy software or online family tree platform that best suits your family's needs. Some popular options include Ancestry, FamilySearch, MyHeritage, and Geni.

Invite family members to join the platform and contribute to the family tree. Provide them with instructions on how to add information and attach relevant documents, such as birth certificates and census records.

Set up a system for communication and collaboration, such as a group chat or email thread, to keep everyone informed of updates and changes made to the family tree.

@RobertKielty
RobertKielty / 502 pair issue
Created August 15, 2022 16:07
View Source
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 clojure.lang.ExceptionInfo: clj-http: status 401 {:cached nil, :request-time 189, :repeatable? false, :protocol-version {:name &quot;HTTP&quot;, :major 1, :minor 1}, :streaming? true, :http-client #object[org.apache.http.impl.client.InternalHttpClient 0x7ec1c42a &quot;org.apache.http.impl.client.InternalHttpClient@7ec1c42a&quot;], :chunked? false, :type :clj-http.client/unexceptional-status, :reason-phrase &quot;Unauthorized&quot;, :headers {&quot;Access-Control-Expose-Headers&quot; &quot;ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset&quot;, &quot;Referrer-Policy&quot; &quot;origin-when-cross-origin, strict-origin-when-cross-origin&quot;, &quot;Server&quot; &quot;GitHub.com&quot
#+TITLE: Create
#+DESCRIPTION: Secret creation
#+name: secret-setup
#+begin_src bash :results output :tangle secret-setup.sh :shebang "#!/bin/bash"
declare -r SECRETS_DIR="$(pwd)/secrets"
declare -r OAUTH_TOKEN_FILE="${SECRETS_DIR}/gh-oauth-token"
declare -r HMAC_TOKEN_FILE="${SECRETS_DIR}/hmac-token"
#+TITLE: Create
#+DESCRIPTION: Secret creation
#+begin_src bash
#!/bin/bash -
#===============================================================================
#
# FILE: personal_prow.sh
#