Skip to content

Instantly share code, notes, and snippets.

View mdelder's full-sized avatar

Michael Elder mdelder

View GitHub Profile
@mdelder
mdelder / generate-update-issuer-cert-manifest.sh
Last active December 4, 2020 16:05 — forked from cdoan1/generate-update-issuer-cert-manifest.sh
Update certificate from cert-manager certificate
#!/bin/bash
# manually recreate the Issuers and Certificates for cert-manager
NS=${NS:-open-cluster-management}
CLUSTER_NAME=${CLUSTER:-mycluster}
BASE_DOMAIN=${BASE_DOMAIN:-mydomain.com}
APPLICATION_UI_DEPLOYMENT=$(oc get deployment -n $NS | grep applicationui | awk '{print $1}')
CONSOLE_CHART=$(oc get helmrelease -A | grep console | awk '{print $2}')
@mdelder
mdelder / watson-conversation-service.yaml
Created May 3, 2019 14:52
An example Kubernetes Deployment for a Node app that interacts with the Watson Conversation API. See https://ibm.co/2zKfgIX for the full recipe.
# Service to expose frontend
apiVersion: v1
kind: Service
metadata:
name: watson-conversation-app
labels:
app: watson-conversation-app
tier: frontend
spec:
type: NodePort
@mdelder
mdelder / watson-conversation.yaml
Created May 3, 2019 14:47
An example Kubernetes Deployment for a Node app that interacts with the Watson Conversation API. See https://ibm.co/2zKfgIX for the full recipe.
# Application to deploy
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: watson-conversation-app
spec:
replicas: 2 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels: