Skip to content

Instantly share code, notes, and snippets.

View VidyasagarMSC's full-sized avatar
👨‍💻
Coding, Exploring & Cooking too many things ==>

Vidyasagar Machupalli VidyasagarMSC

👨‍💻
Coding, Exploring & Cooking too many things ==>
View GitHub Profile
@VidyasagarMSC
VidyasagarMSC / IBMMobile@Conferences.md
Last active June 5, 2018 06:28
IBM Mobile at #AltConf and #WWDC2018.
apiVersion: v1
kind: Secret
metadata:
name: basic-user-pass
annotations:
build.knative.dev/docker-0: registry.<region>.bluemix.net # replace the <region>
type: kubernetes.io/basic-auth
stringData:
username: token # username
password: <password> # token-value
apiVersion: v1
kind: ServiceAccount
metadata:
name: build-bot
secrets:
- name: basic-user-pass
apiVersion: build.knative.dev/v1alpha1
kind: Build
metadata:
name: kaniko-build
spec:
serviceAccountName: build-bot
source:
git:
url: https://github.com/VidyasagarMSC/knative-deploy # source code from GitHub
revision: master
apiVersion: serving.knative.dev/v1alpha1 # Current version of Knative
kind: Service
metadata:
name: knative-node-kaniko # The name of the app
namespace: default # The namespace the app will use
spec:
runLatest:
configuration:
revisionTemplate:
spec:
apiVersion: build.knative.dev/v1alpha1
kind: BuildTemplate
metadata:
name: kaniko
spec:
parameters:
- name: IMAGE
description: registry.<region>.bluemix.net/<namespace>/knative-node-kaniko #replace <region> and <namespace>
- name: DOCKERFILE
description: ./Dockerfile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VidyasagarMSC
VidyasagarMSC / istioctl_windows10.md
Last active January 8, 2024 11:41
Setup Istio/istioctl on Windows 10

Download Istio

Set the environment variable

  • Copy the absolute path to the bin folder under the downloaded istio-<VERSION_NUMBER> folder e.g., C:/Users/Administrator/istio-1.0.5-win/istio-1.0.5/bin
  • In the Search on the taskbar, look and open "Edit environment variables for my account".
  • Under User variables, edit path environment variable and add a new entry pointing to the bin folder as copied above. Save the entries.