Skip to content

Instantly share code, notes, and snippets.

View cmwylie19's full-sized avatar

Case Wylie cmwylie19

View GitHub Profile

Canary Deployment in Kubernetes

We are going to deploy an nginx app with 2 versions, blue and green. We will mount the index.html to the deployments to show which version we are looking at. Then we will create a service with labels pointing to both versions, and control the flow of traffic between the blue version to the green version through pod replicas in the deployment.

Create the resources

Create the demo namespace

k create ns demo
k config set-context $(k config current-context) --namespace=demo
@cmwylie19
cmwylie19 / mso-manual-deploy.md
Last active March 21, 2022 19:33
Manual deployment of the Monitoring Stack Operator on OpenShift 4.10.3
@cmwylie19
cmwylie19 / dp.md
Last active March 30, 2022 23:20
Kong Operator Deploy for Data Plane & Control Plane

Kong Gateway using the Operator (CP/DP with Ingress Controller)

The Kong Operator is a helm operator. The values defined in the operator instance are turned into helm values. All possible fields for the operator can be found here and are the same as the helm values for this operator which can be found here.

We will Deploy the Kong Gateway using the Kong Operator and deploy the Control Plane and Data Plane in two distinct namespaces.

TOC

@cmwylie19
cmwylie19 / MonitoringStack.md
Last active April 2, 2022 12:27
Scrape Metrics, RemoteWrite, Create Alerts, Trigger Alerts, and Create Dashboards.
@cmwylie19
cmwylie19 / main.go
Created April 3, 2022 13:49
ETCD Backup
package main
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
@cmwylie19
cmwylie19 / starburstenterprise-sample.yaml
Created April 14, 2022 21:59
Instance of starburstenterprise operator
apiVersion: charts.starburstdata.com/v1alpha1
kind: StarburstEnterprise
metadata:
name: starburstenterprise-sample
namespace: openshift-operators
spec:
additionalVolumes: []
cache:
diskUsagePercentage: 80
enabled: false
@cmwylie19
cmwylie19 / kong-mesh-metrics.md
Created April 18, 2022 16:57
Kong Mesh Metrics

Kong Mesh Metrics

This document shows how to work around the Metrics Problem in Kong Mesh while running on OpenShift.

Environment

Client Version: 4.10.4
Server Version: 4.9.9
Kubernetes Version: v1.22.3+4dd1b5a
Client: Kong Mesh 1.7.0

Kong Mesh Tracing

This document shows how to use distributed tracing in Kong Mesh while running on OpenShift.

Environment

Client Version: 4.10.4
Server Version: 4.9.9
Kubernetes Version: v1.22.3+4dd1b5a
Client: Kong Mesh 1.7.0