Skip to content

Instantly share code, notes, and snippets.

View pbolduc's full-sized avatar

Phil Bolduc pbolduc

  • NTT Data Services
  • Victoria, BC
View GitHub Profile
@pbolduc
pbolduc / configurations.yaml
Created August 5, 2021 04:46 — forked from jamcole/configurations.yaml
Kustomize OCP Objects (configurations)
# https://github.com/kubernetes-sigs/kustomize/blob/master/examples/transformerconfigs/README.md
commonLabels:
# set labels at metadata.labels for all types
- path: metadata/labels
# create metadata.labels if it doesn't exist
create: true
- path: spec/template/metadata/labels
kind: DeploymentConfig
create: true
@pbolduc
pbolduc / hello-world-deployment.yaml
Created July 12, 2021 07:31 — forked from shirhatti/hello-world-deployment.yaml
Kubernetes manifest for dotnet-monitor
# This Deployment manifest defines:
# - single-replica deployment of the container image, with label "app: dotnet-hello-world"
# - Pod exposes port 8080
# - specify PORT environment variable to the container process
# Syntax reference https://kubernetes.io/docs/concepts/configuration/overview/
apiVersion: apps/v1
kind: Deployment
metadata:
name: dotnet-hello-world
spec:
@pbolduc
pbolduc / openshift-cheatsheet.md
Last active June 14, 2023 00:21 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet

My Openshift Cheatsheet

Note: some of the content below is no longer valid with OpenShift v4. If a command doesn't work, it could have been changed from v3.

Openshift build secrets for cloning git repos using SSH Keys

  • To create ssh secret:
oc create secret generic sshsecret \
    --from-file=ssh-privatekey=$HOME/.ssh/id_rsa
@pbolduc
pbolduc / 1. Install Redis
Last active July 3, 2023 09:39 — forked from nghuuphuoc/1) Install
Install redis on CentOS 7
# see How to Install Redis Server on CentOS 7 - http://linoxide.com/storage/install-redis-server-centos-7/
# --- Compiling ---
$ yum install gcc make tcl
$ REDIS_VER=3.2.3
$ wget http://download.redis.io/releases/redis-$REDIS_VER.tar.gz
$ tar xzvf redis-$REDIS_VER.tar.gz
$ cd redis-$REDIS_VER
$ make
$ make test
@pbolduc
pbolduc / EventStoreScriptExtensionProvisionFile.ps1
Last active January 29, 2016 13:33
Create Event Store Cluster Azure VMs
param (
[Int]
$clusterSize,
[string]
$VMName,
[Int]
$nodeNumber,
[Int]
$IntIp,
[Int]