Skip to content

Commit

Permalink
Add kubecost.md and ingress-nginx.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Josca committed Feb 6, 2025
1 parent 007e09f commit 43f08e8
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ kubectl config set-context --current --namespace=kcm-system
~~~

## Service Templates
- [ingress-nginx](./charts/ingress-nginx/ingress-nginx.md)
- [kubecost](./charts/kubecost/kubecost.md)
- [argo](./charts/argo/argo.md)
- [dapr](./charts/dapr/dapr.md)
- [netapp](./charts/netapp/netapp.md)
Expand Down
33 changes: 33 additions & 0 deletions charts/ingress-nginx/ingress-nginx.md
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/)
34 changes: 34 additions & 0 deletions charts/kubecost/kubecost.md
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/)

0 comments on commit 43f08e8

Please sign in to comment.