Skip to content

Instantly share code, notes, and snippets.

Brian Kopp BrianKopp

Block or report user

Report or block BrianKopp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View An Example Prometheus Operator Values.md

Example Prometheus Operator Values.yaml

@BrianKopp
BrianKopp / A k8s custom external metrics gist.md
Last active Aug 5, 2019
Explains how to scale k8s deployment based on custom external metric
View A k8s custom external metrics gist.md

Kubernetes External Metric

This gist contains files used to scale a kubernetes deployment based on some other arbitrary/external metric.

@BrianKopp
BrianKopp / A k8s custom metrics gist.md
Last active Aug 4, 2019
Kubernetes Connection Count Custom Metrics
View A k8s custom metrics gist.md

K8s Custom Metrics

These files accompany a set of blog posts describing kubernetes custom metrics.

@BrianKopp
BrianKopp / main-read-file-contents.rs
Last active Jun 16, 2019
Rust CLI to read file and print word count
View main-read-file-contents.rs
use std::env;
use std::fs;
use std::process;
use std::io;
fn main() {
let args: Vec<String> = env::args().collect();
let file_name = &args[1];
let file_content_result = fs::read_to_string(file_name);
@BrianKopp
BrianKopp / nginx-config.yaml
Created Jun 13, 2019
Kubernetes nginx DaemonSet basic config
View nginx-config.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nginx
labels:
app: nginx
spec:
selector:
matchLabels:
app: nginx
@BrianKopp
BrianKopp / first-deploy.yaml
Created Jun 13, 2019
Basic Kubernetes hello world deployment and service
View first-deploy.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
labels:
app: hello-world-app
spec:
replicas: 1
selector:
matchLabels:
You can’t perform that action at this time.