Skip to content

Instantly share code, notes, and snippets.

Kamesh Sampath kameshsampath

Block or report user

Report or block kameshsampath

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
@kameshsampath
kameshsampath / catalog_sources.yaml
Last active Sep 22, 2019
RH Servicemesh on OCP 4.2. via Opeator SDK CLI
View catalog_sources.yaml
apiVersion: operators.coreos.com/v1
kind: CatalogSourceConfig
metadata:
name: rhd-workshop-packages
namespace: openshift-marketplace
spec:
targetNamespace: openshift-operators
packages: knative-serving-operator,knative-eventing-operator,openshift-pipelines-operator,elasticsearch-operator,jaeger-product,kiali-ossm,servicemeshoperator
source: community-operators
View devfile-env-k8s.yaml
apiVersion: 1.0.0
metadata:
name: quarkus-workshop
projects:
- name: quarkus-tutorial
source:
type: git
location: 'https://github.com/redhat-developer-demos/quarkus-tutorial.git'
components:
- id: redhat/vscode-yaml/latest
View deployment.auto.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: customer
version: v1
name: customer
spec:
replicas: 1
selector:
View gist:e77bbb00fd9337aaa5eb35904dfd9594
Instead of creating a new gist, you can update an existing one by passing its ID
or URL with "-u". For this to work, you must be logged in, and have created the
original gist with the same GitHub account.
View invoke-service.sh
INGRESSGATEWAY=istio-ingressgateway
IP_ADDRESS="$(minishift ip):$(kubectl get svc $INGRESSGATEWAY --namespace istio-system --output 'jsonpath={.spec.ports[?(@.port==80)].nodePort}')"
curl -H "Host: greeter.demos.example.com" $IP_ADDRESS
@kameshsampath
kameshsampath / building_service.sh
Last active Feb 13, 2019
gist for medium story
View building_service.sh
cd $PROJECT_HOME/service
kubectl create namespace demos
kubectl label namespace demos istio-injection=enabled
eval $(minikube docker-env)
docker build -t dev.local/rhdevelopers/node-greeter:0.0.1 .
kubectl apply -f service.yaml -n demos
View enable_and_apply_istio_addon.sh
#!/bin/bash
set -e
minishift addon enable istio
minishift addon apply istio
View install_isito_addon.sh
#!/bin/bash
set -e
git clone https://github.com/minishift/minishift-addons
minishift addon install ./minishift-addons/add-ons/istio
@kameshsampath
kameshsampath / istio_minshift_profile.sh
Last active Oct 6, 2018
Commands required to setup minishift profile for Istio
View istio_minshift_profile.sh
#!/bin/bash
set -e
# Create a profile called "servicemesh"
minishift profile set servicemesh
# give the profile 8GB of memory
minishift config set memory 8GB
# give the profile 4 CPU
minishift config set cpus 4
# adding container image caching to allow faster profile setup
View Strimzi_minishift.md

Run Strimzi on Minishift

As a cluster-admin user, with a correctly running Minishift, perform the following steps:

#!/usr/bin/env bash

# Turn colors in this script off by setting the NO_COLOR variable in your
# environment to any value:
#
You can’t perform that action at this time.