-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kubecost.md and ingress-nginx.md
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## Ingress Nginx | ||
This service template is typically pre-installed in k0rdent. If not | ||
install it: | ||
~~~bash | ||
helm install ingress-nginx oci://ghcr.io/k0rdent/catalog/charts/ingress-nginx-service-template | ||
~~~ | ||
|
||
Check the template is available: | ||
~~~bash | ||
kubectl get servicetemplates -A | ||
# NAMESPACE NAME VALID | ||
# kcm-system ingress-nginx-4-11-3 true | ||
~~~ | ||
|
||
Use the template in k0rdent manifests `ClusterDeployment` or `MultiClusterService`: | ||
~~~yaml | ||
apiVersion: k0rdent.mirantis.com/v1alpha1 | ||
kind: ClusterDeployment | ||
# kind: MultiClusterService | ||
... | ||
serviceSpec: | ||
services: | ||
- template: ingress-nginx-4-11-3 | ||
name: ingress-nginx | ||
namespace: ingress-nginx | ||
values: | | ||
ingress-nginx: | ||
controller: | ||
hostPort: | ||
enable: true | ||
~~~ | ||
|
||
[Official docs](https://kubernetes.github.io/ingress-nginx/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## Kubecost | ||
Install Service template | ||
~~~bash | ||
helm install kubecost oci://ghcr.io/k0rdent/catalog/charts/kubecost-service-template | ||
~~~ | ||
|
||
Check the template is available: | ||
~~~bash | ||
kubectl get servicetemplates -A | ||
# NAMESPACE NAME VALID | ||
# kcm-system kubecost-2-5-3 true | ||
~~~ | ||
|
||
Use the template in k0rdent manifests `ClusterDeployment` or `MultiClusterService`: | ||
~~~yaml | ||
apiVersion: k0rdent.mirantis.com/v1alpha1 | ||
kind: ClusterDeployment | ||
# kind: MultiClusterService | ||
... | ||
serviceSpec: | ||
services: | ||
- template: kubecost-2-5-3 | ||
name: kubecost | ||
namespace: kubecost | ||
values: | | ||
cost-analyzer: | ||
kubecostToken: <kubecost-token> | ||
ingress: | ||
enabled: true | ||
className: nginx | ||
hosts: [] | ||
~~~ | ||
|
||
[Official docs](https://docs.kubecost.io/) |