> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jedify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 4. Your Jedify resource

> Describe your install in one resource and apply it. The operator installs everything from it.

The Jedify resource holds only your decisions. Everything OpenTofu made reaches the operator already, from the previous step.

## Write it

Save this as `jedify.yaml` and change every value to yours:

```yaml theme={null}
apiVersion: jedify.com/v1alpha1
kind: Jedify
metadata:
  name: jedify
  namespace: jedify
spec:
  install:
    host: jedify.acme.com                       # where people reach Jedify
    gateway:
      className: gke-l7-global-external-managed # internet-facing; leave gateway out for internal-only
      address: acme-jedify-ip                   # optional: an address you reserved
    tls:
      acme:
        email: platform-team@acme.com           # Let's Encrypt; see "Certificate" below for the others
  identity:
    organization: Acme                          # your account's name in Jedify
    domain: auth.jedify.acme.com                # the sign-in hostname
    administrator: platform-team@acme.com       # the sign-in service's own administrator
    provider:
      name: Okta                                # the sign-in button's label
      issuer: https://acme.okta.com
      clientId: 0oa1example
      clientSecret:
        externalSecret:
          remoteRef: { key: jedify-okta-client-secret }   # a secret in this project's Secret Manager
    grants:
      - email: first.admin@acme.com             # becomes Tenant Admin at their first sign-in
  account:
    brief: Acme makes industrial pumps and sells them to utilities in Europe.
```

What each part does:

* **`install`**: the hostname, how the Gateway is exposed, and the certificate. Leave `gateway` out and Jedify is reachable only from inside your network.
* **`identity`**: how people sign in. The operator sets up the sign-in service, adds your identity provider as its sign-in button, and gives each person in `grants` their role once they first sign in. See [Sign-in and roles](https://docs.jedify.com/self-hosted/gcp/configure/sign-in.md).
* **`account`**: a sentence or two about your business, which Jedify uses as context in every answer. See [Account](https://docs.jedify.com/self-hosted/gcp/configure/account.md).

You don't need `models`: the release routes every model to Gemini on Vertex AI in your project. To use other models or your own gateway, see [Models](https://docs.jedify.com/self-hosted/gcp/configure/models.md). Warehouses come after the install: [Data sources](https://docs.jedify.com/self-hosted/gcp/configure/data-sources/overview.md).

### Certificate

`tls` takes exactly one source:

| `tls` | Certificate from |
| - | - |
| `acme: { email: ... }` | Let's Encrypt. Internet-facing installs only. |
| `issuer: <name>` | Your cert-manager `ClusterIssuer`: your own certificate authority. |
| `certificateMap: <name>` | A Google Certificate Manager certificate map. Global Gateway classes only. |
| `secretName: <name>` | A TLS Secret you make in namespace `jedify` and renew yourself. |

The certificate must cover both `install.host` and `identity.domain`.

## Check it before you apply

```sh theme={null}
./scripts/preflight.sh --jedify jedify.yaml
```

It checks the address, the hostnames and the certificate source the resource names, and each `FAIL` names the field to change. Until DNS points at the Gateway, the hostname checks say so; that is expected on a first install without a reserved address.

## Apply it

```sh theme={null}
kubectl apply -f jedify.yaml
```

On a new cluster the operator installs in stages: the platform, then the sign-in service and its setup, then the application. That takes 20 to 40 minutes. Follow it:

```sh theme={null}
kubectl -n jedify get jedify jedify -w
```

## Point DNS at the Gateway

Once the platform is installed, the Gateway has an address:

```sh theme={null}
kubectl -n jedify get gateway -o jsonpath='{.items[0].status.addresses[0].value}{"\n"}'
```

Create an A record for each hostname, `jedify.acme.com` and `auth.jedify.acme.com`, pointing at it. With a reserved `address`, you can create them before you apply. With Let's Encrypt, the certificate is issued once both names resolve.

## Check it

```sh theme={null}
kubectl -n jedify wait jedify/jedify --for=condition=Ready --timeout=60m
kubectl -n jedify get jedify jedify -o wide
```

Expected: `Ready` is `True`. While it is not, the `Ready` message names what is still missing, in words that point to the fix. [Status and the doctor](https://docs.jedify.com/self-hosted/gcp/operate/status.md) explains every condition.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.