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
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: deathstar | |
labels: | |
app.kubernetes.io/name: deathstar | |
spec: | |
type: ClusterIP | |
ports: |
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
192.168.70.3 google.com | |
192.168.70.3 absa.co.za |
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
# modified from https://github.com/stefanprodan/k8s-prom-hpa/blob/617a98c5d921c3413599bbbb1438dfb125e3bd21/Makefile | |
SHELL=bash | |
UNAME := $(shell uname) | |
PURPOSE:=custom-metrics-adapter | |
SERVICE_NAME:=custom-metrics-adapter | |
ALT_NAMES:="custom-metrics-adapter.kube-system","custom-metrics-adapter.kube-system.svc" | |
SECRET_FILE:=custom-metrics-adapter-serving-certs.yml | |
certs: gensecret rmcerts |
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
#!/bin/bash | |
set -e | |
gateway_ip=$(ip route show default | awk '/default/ {print $3}') | |
eth1_ip=$(ip addr show eth1 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1) | |
echo "Configuring secondary IP (eth1) ..." | |
# Print stuff |
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
/* | |
* Author: Zac Blazic (210208880) | |
* Date: 24/03/2011 | |
* File: Steganography.cpp | |
*/ | |
#include "Steganography.h" | |
#include <fstream> | |
#include <string> | |
#include <iostream> |
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
/* | |
* Author: Zac Blazic (210208880) | |
* Date: 19/03/2011 | |
* File: SnakesAndLadders.cpp | |
* Description: Finds the maximum, minumum and average rolls to complete a snakes and ladders game. | |
*/ | |
#include <iostream> | |
#include <ctime> |