Create
Create your network, clusters, and configure the environment.
Before You Begin
Before you begin, configure networking in the VCN segmented by
purpose:
- Public subnets support the service load balancer and the OKE API/service endpoints.
- Private subnets host the worker nodes and the pods.
- A dedicated private subnet hosts an Oracle Autonomous AI Database.
Consider the following to plan your subnet CIDR ranges:
- Choose non-overlapping CIDR ranges (for example, VCN
10.0.0.0/16; subnets/24slike10.0.10.0/24nodes,10.0.20.0/24pods,10.0.30.0/24database). - Ensure no overlap with node/pod CIDRs, Kubernetes service CIDR, or cluster CIDR.
Create Network Resources
The VCN wizard created a private and public subnet for
you.
You must now create three additional subnets:
- Create an additional public subnet for the OKE API/OKE Service. For
example,
oke-api-service-public. - Create two additional private subnets within the same VCN for the
Node and the Pod with egress to the internet via the VCN's NAT Gateway for Dify pods. For example,
node-private-subnetandpod-private-subnet.
Create OKE Cluster
Create a cluster, select the configured VCN, and assign the designated
worker node and pod subnets to the Kubernetes API.
Follow these steps to create and configure a cluster:
For more information on creating clusters, see Custom
Create Workflow to Create a Cluster in the OCI documentation.
Configure Dify Environment and Access
Configure the Dify environment access to prepare it for deployment to initialize the platform:
Environmental Preparation
- Download the Dify Enterprise Edition installation package through Helm.
- Modify the
values.yamlconfiguration. - If you use a self-built PostgreSQL, Redis and MinIO,
enable external component configurations such as
externalPostgresandexternalRedis. - At the same time, create a local PVC, allocate 50G storage for data persistence.
- Run the
kubectlcommand to complete the creation.
External access configuration
- Deploy a load-balancing Ingress Controller by running helm install ingress-nginx.
- After the Ingress obtains an external IP address, configure DNS.
- You can then access the Dify console and the enterprise management platform through the web to complete license registration, initial user creation, and plugin installation, for example LLM model plugin and database query plugin.