From 056e99b0ff6dd6010df343f72624c8982e6478c1 Mon Sep 17 00:00:00 2001 From: Roi Kramer Date: Wed, 4 Oct 2023 15:06:21 +0200 Subject: [PATCH] support for private clusters and proxy --- charts/ocean-kubernetes-controller/README.md | 31 ++++++++++++++++++- .../README.md.gotmpl | 31 ++++++++++++++++++- 2 files changed, 60 insertions(+), 2 deletions(-) diff --git a/charts/ocean-kubernetes-controller/README.md b/charts/ocean-kubernetes-controller/README.md index 80f000e..c359c8f 100644 --- a/charts/ocean-kubernetes-controller/README.md +++ b/charts/ocean-kubernetes-controller/README.md @@ -21,11 +21,40 @@ helm repo update 3. Install `ocean-kubernetes-controller`: ```sh -helm install my-release spot/ocean-kubernetes-controller +helm install spot spot/ocean-kubernetes-controller \ + --set spotinst.account=$SPOTINST_ACCOUNT \ + --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \ + --set spotinst.token=$SPOTINST_TOKEN ``` > NOTE: Please configure all required chart values using the `set` command line argument or a `values.yaml` file. +## Installation With HTTPS Proxy + +In case you need to configure a proxy with a custom CA bundle you should use the following: + +```sh +helm install spot spot/ocean-kubernetes-controller \ + --set spotinst.account=$SPOTINST_ACCOUNT \ + --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \ + --set spotinst.token=$SPOTINST_TOKEN \ + --set spotinst.proxyUrl=$SPOTINST_PROXY_URL \ + --set caBundleSecret.create=true \ + --set caBundleSecret.data="$(cat ./path/to/ca.pem)" +``` + +If you already have a CA bundle secret you can instead use: + +```sh +helm install spot spot/ocean-kubernetes-controller \ + --set spotinst.account=$SPOTINST_ACCOUNT \ + --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \ + --set spotinst.token=$SPOTINST_TOKEN \ + --set spotinst.proxyUrl=$SPOTINST_PROXY_URL \ + --set caBundleSecret.name=my-ca-bundle-secret \ + --set caBundleSecret.key=bundle.pem +``` + ## Requirements Kubernetes: `>=1.20.0-0` diff --git a/charts/ocean-kubernetes-controller/README.md.gotmpl b/charts/ocean-kubernetes-controller/README.md.gotmpl index cf7d1ae..1ddff9c 100644 --- a/charts/ocean-kubernetes-controller/README.md.gotmpl +++ b/charts/ocean-kubernetes-controller/README.md.gotmpl @@ -23,11 +23,40 @@ helm repo update 3. Install `{{ template "chart.name" . }}`: ```sh -helm install my-release spot/{{ template "chart.name" . }} +helm install spot spot/{{ template "chart.name" . }} \ + --set spotinst.account=$SPOTINST_ACCOUNT \ + --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \ + --set spotinst.token=$SPOTINST_TOKEN ``` > NOTE: Please configure all required chart values using the `set` command line argument or a `values.yaml` file. +## Installation With HTTPS Proxy + +In case you need to configure a proxy with a custom CA bundle you should use the following: + +```sh +helm install spot spot/{{ template "chart.name" . }} \ + --set spotinst.account=$SPOTINST_ACCOUNT \ + --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \ + --set spotinst.token=$SPOTINST_TOKEN \ + --set spotinst.proxyUrl=$SPOTINST_PROXY_URL \ + --set caBundleSecret.create=true \ + --set caBundleSecret.data="$(cat ./path/to/ca.pem)" +``` + +If you already have a CA bundle secret you can instead use: + +```sh +helm install spot spot/{{ template "chart.name" . }} \ + --set spotinst.account=$SPOTINST_ACCOUNT \ + --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \ + --set spotinst.token=$SPOTINST_TOKEN \ + --set spotinst.proxyUrl=$SPOTINST_PROXY_URL \ + --set caBundleSecret.name=my-ca-bundle-secret \ + --set caBundleSecret.key=bundle.pem +``` + {{ template "chart.requirementsSection" . }} {{ template "chart.valuesSection" . }}