# Install Cert Manager

## Create namespace & vpc

To install cert manager, you need to create a namespace and a vpc.

```bash
kubectl create ns cert-manager
```

Create a YAML file cvpc-cert-manager.

```bash
nano cvpc-cert-manager.yaml
```

Copy and paste the following YAML contents.

```yaml
apiVersion: tenants.cloudeka.ai/v1alpha2
kind: CloudekaVPC
metadata:
  name: cert-manager
  namespace: cert-manager
spec:
  isolate: false
```

After pasting the syntax, save the file by pressing Ctrl + O, then press the Enter key and exit the editor by pressing Ctrl + X. The next step is to apply this configuration.

```yaml
kubectl apply -f cvpc-cert-manager.yaml
```

## Add helm repository

Add a Helm repository by running the following command.

```
helm repo add jetstack https://charts.jetstack.io --force-update
```

Create values.yaml file from the helm repository

```
helm show values cert-manager --repo https://charts.jetstack.io > values.yaml
```

Modify values.yaml file

```bash
nano values.yaml
```

Set resources cert manager.

```yaml
resources:
  limits:
    cpu: 1
    memory: 1Gi
  requests:
    cpu: 1
    memory: 1Gi
```

Set resources webhook.

```yaml
webhook:
  resources:
    limits:
      cpu: 1
      memory: 1Gi
    requests:
      cpu: 1
      memory: 1Gi
```

Set resources cainjector.

```yaml
cainjector:
  resources:
    limits:
      cpu: 1
      memory: 1Gi
    requests:
      cpu: 1
      memory: 1Gi
```

Set resources startupapicheck.

```yaml
startupapicheck:
  resources:
    limits:
      cpu: 1
      memory: 1Gi
    requests:
      cpu: 1
      memory: 1Gi
```

Deploy cert-manager

```
helm install cert-manager httpsjetstack/cert-manager --namespace ingress-nginx --values values.yaml
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/deka-gpu/deka-gpu-service/ingress/install-cert-manager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
