Skip to content

Instantly share code, notes, and snippets.

View ramiyengar's full-sized avatar

Ram Iyengar ramiyengar

View GitHub Profile
ram@cff:~$ pack inspect-image ghcr.io/ramiyengar/paketo-demo --bom|jq '.'
{
"remote": [
{
"name": "helper",
"version": "2.1.0",
"metadata": {
"layer": "helper",
"names": [
"ca-certificates-helper"
$ pack inspect-image ghcr.io/ramiyengar/paketo-demo
Inspecting image: ghcr.io/ramiyengar/paketo-demo
REMOTE:
Stack: io.buildpacks.stacks.bionic
Base Image:
Reference: index.docker.io/paketobuildpacks/run@sha256:9067d823022ac6eeeada3d91d42cad45496fa440aef02096a4c332429e8b48dc
Top Layer: sha256:80d57cc9e517f84d9a52a55379b8efe02b1d6cc0661be53d76a8799613b83851
# Copyright 2018 the Service Broker Project Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
kubectl port-forward grafana-dc6787967-qkvnf -n cf-system 3000
@ramiyengar
ramiyengar / Local Install Instructions CF-for-k8s
Created January 22, 2021 11:32
This gist describes the steps you need to take to install kubernetes locally on your machine and then deploy CF-for-k8s to the locally installed cluster.
#Clone the cf-for-k8s repo. And cd into it.
git clone https://github.com/cloudfoundry/cf-for-k8s.git
cd cf-for-k8s
#You could deploy to your choice of KiND clusters or minikube. Installation instructions for them are available on the #individual project page. Once installed, start a cluster by using the following command:
#For minikube
minikube start --cpus=6 --memory=8g --kubernetes-version="1.19.2" --driver=docker
minikube addons enable metrics-server
kubectl port-forward prometheus-server-675669fb96-b449n -n cf-system 9090
cf api --skip-ssl-validation api.35.192.46.62.xip.io
cf login
#Supply login credentials. Once logged in, run the following
cf create-org SampleOrg
cf create-space -o SampleOrg dev
cf target -o SampleOrg -s dev
kubectl patch svc istio-ingressgateway --namespace istio-system --patch '{"spec": { "loadBalancerIP": "35.192.46.62" }}'
kapp deploy -a cf -f /home/ram/tempdir/cf-for-k8s-rendered.yml -y
ytt -f ~/cf-for-k8s/config -f ~/cf-k8s-prometheus/config -f ~/cf-k8s-prometheus/experimental/add-grafana.yml -f ~/tempdir/cf-values.yml > ~/tempdir/cf-for-k8s-rendered.yml