Skip to content

Instantly share code, notes, and snippets.

View kameshsampath's full-sized avatar

Kamesh Sampath kameshsampath

View GitHub Profile
@kameshsampath
kameshsampath / istio_minshift_profile.sh
Last active October 6, 2018 04:59
Commands required to setup minishift profile for Istio
#!/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
#!/bin/bash
set -e
git clone https://github.com/minishift/minishift-addons
minishift addon install ./minishift-addons/add-ons/istio
#!/bin/bash
set -e
minishift addon enable istio
minishift addon apply istio
@kameshsampath
kameshsampath / building_service.sh
Last active February 13, 2019 09:52
gist for medium story
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
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
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.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: customer
version: v1
name: customer
spec:
replicas: 1
selector:
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
@kameshsampath
kameshsampath / catalog_sources.yaml
Last active September 22, 2019 05:47
RH Servicemesh on OCP 4.2. via Opeator SDK CLI
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
2019/12/20 02:15:28 Camel K is correctly installed in the cluster.
2019/12/20 02:15:29 Registering Components.
2019/12/20 02:15:29 Setting up Controllers.
2019/12/20 02:15:29 Adding the Camel Source controller.
{"level":"panic","ts":1576808129.4429235,"logger":"fallback","caller":"addressable/addressable.go:56","msg":"Unable to fetch knative.dev/pkg/apis/duck.InformerFactory from context.","stacktrace":"knative.dev/eventing-contrib/vendor/knative.dev/pkg/client/injection/ducks/duck/v1/addressable.Get\n\t/home/prow/go/src/knative.dev/eventing-contrib/vendor/knative.dev/pkg/client/injection/ducks/duck/v1/addressable/addressable.go:56\nknative.dev/eventing-contrib/vendor/knative.dev/pkg/resolver.NewURIResolver\n\t/home/prow/go/src/knative.dev/eventing-contrib/vendor/knative.dev/pkg/resolver/addressable_resolver.go:53\nknative.dev/eventing-contrib/camel/source/pkg/reconciler.Add\n\t/home/prow/go/src/knative.dev/eventing-contrib/camel/source/pkg/reconciler/camelsource.go:80\nmain.main\n\t/home/prow/go/src/knative.