This demo showcases how to install the prometheus operator with RukPak!
$ kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml
This demo showcases how to install the prometheus operator with RukPak!
$ kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml
#!/bin/bash | |
tmp_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir') | |
cd $tmp_dir | |
trap 'rm -rf -- "$tmp_dir"' EXIT | |
docker save $1 -o manifest.tar | |
tar -xf manifest.tar | |
cd $(ls -d */|head -n 1) | |
mkdir contents | |
tar -xf layer.tar -C contents |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
annotations: | |
creationTimestamp: null | |
name: mykinds.operators.coreos.com | |
spec: | |
group: operators.coreos.com | |
names: | |
kind: MyKind |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
annotations: | |
controller-gen.kubebuilder.io/version: v0.2.4 | |
creationTimestamp: null | |
name: clusterserviceversions.operators.coreos.com | |
spec: | |
group: operators.coreos.com | |
names: |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
annotations: | |
controller-gen.kubebuilder.io/version: v0.2.4 | |
creationTimestamp: null | |
name: clusterserviceversions.operators.coreos.com | |
spec: | |
group: operators.coreos.com | |
names: |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: keda-operator | |
namespace: openshift-operators | |
--- | |
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: scaledobjects.keda.k8s.io |
// A custom HTTPClient is used here since the default HTTPClients ProxyFromEnvironment | |
// uses a cache which won't let us update the proxy env vars | |
sess, err := session.NewSession(&aws.Config{ | |
Credentials: credentials.NewStaticCredentials(cfg.AccessKey, cfg.SecretKey, ""), | |
Region: &d.Config.Region, | |
Endpoint: &d.Config.RegionEndpoint, | |
HTTPClient: &http.Client{ | |
Transport: &http.Transport{ | |
Proxy: func(req *http.Request) (*url.URL, error) { | |
return httpproxy.FromEnvironment().ProxyFunc()(req.URL) |
``` | |
apiVersion: v1beta3 | |
baseDomain: devcluster.openshift.com | |
metadata: | |
name: cluster | |
platform: | |
platform: | |
aws: | |
region: us-east-1 | |
proxy: |
#!/bin/bash | |
# This script downloads and runs the OpenShift installer associated with the provided tag. | |
echo 'Select a tag from https://openshift-release.svc.ci.openshift.org to download and run...' | |
read -p 'Openshift Tag: ' TAG | |
oc adm release extract --command=openshift-install registry.svc.ci.openshift.org/ocp/release:$TAG | |
export DIR_NAME=cluster-0 | |
export LOG_LEVEL=debug |