Introduction
This document explains how to install a new portal on Apinizer API Developer Portal. The newly created API Developer Portal works as an independent structure from the default API Developer Portal. The new portal is provided in an isolated manner using the following components:- Separate Namespace
- Separate Pod
- Separate Secret
- Separate Service
Pre-Installation Steps
Before starting the installation of Apinizer API Portal, make sure the following prerequisites are met:Installation Steps
API Portal installation can be done in two different ways depending on the Kubernetes management method:- Automatic Installation: If Kubernetes management is done through Apinizer, installation can be done using the API Manager interface.
- Manual Installation: If Kubernetes management is not done through Apinizer, installation is done by applying manual manifest (YAML) files to the Kubernetes cluster and then connecting with API Manager.
3.1. Creating Token for Personal API Access
An authorized token is required to communicate with API Manager during installation. Token information can be obtained by creating a new token or using an existing token on the My Profile page. Staff tokens usually start with theapnz_ prefix.
You can create a new token by going to the My Profile page in API Manager for token creation.

Token creation - Creating personal API token from My Profile page
3.2. API Developer Portal Installation
Apply only one of the following titles according to your management method.3.2.1. API Developer Portal Installation (Through API Manager)
If Kubernetes management is done through Apinizer, make sure the “Kubernetes Management” option is active in the General Settings menu.- Go to Administration → Server Management → Kubernetes Resources page in API Manager.
- Enable the new API Portal from the Deployment & Pods tab.

Kubernetes Resources page - API Portal activation
- Make the necessary definitions for the new portal in the opened dialog window.

API Portal installation dialog - Configuring required settings
Portal ID Information: You can find the Portal ID information that will be requested during installation in Administration > Portal > Settings > Portal menu, on the relevant portal’s card.

| Field | Description |
|---|---|
| Apinizer Portal Management API URL | The address required for the portal to consume Apinizer management APIs. Example: http://<API_MANAGER_ACCESS_URL>:<PORT>/ |
| Apinizer Portal Management API Key/Token | The token information required for the portal to access management APIs (created in Section 3.1). |
| API Portal ID | Specifies the unique identifier (UNIQ ID) of the new portal to be created. |
| Count | Specifies the number of Gateway engine (Pod) instances to run (ReplicaSet). |
| Service Port | Specifies the port on which the service will be exposed (NodePort). |
| Node List | Determines which Kubernetes Worker servers the Pods will run on (NodeAffinity). |
| CPU / Memory | Maximum CPU and RAM limits to be allocated per Pod. |
| Additional Variables | Environment variables to be executed inside the Pod (Environment Variables). |
| Host Aliases | IP-Host mappings to be added to the etc/hosts file (HostAlias). |
Java Options and Memory SettingFor the Java Options setting in the additional variables field:
- Dynamic memory management is used instead of
-Xmxand-Xms. -XX:MaxRAMPercentage=75.0is used by default (75% of container memory).- For a 1 GB limited pod, JVM Heap will be approximately 750 MB.
3.2.2. API Developer Portal Installation (Manual / Outside API Manager)
If Apinizer does not manage the Kubernetes cluster, you can perform manual installation by following the steps below. Step 1: Creating Secret First, a Kubernetes Secret containing API Manager access information and Portal ID must be created.api-portal-secret-2.yaml file with the following content.
apinizer-portal-deployment-2.yaml file with the following content. This file contains both Deployment and Service definitions.
3.3. Integration of API Developer Portal with API Manager
Go to Portal → Settings → Portal page in API Manager and make the definitions appropriate for your organization. You can review the Portal Settings documentation for detailed information.3.4. Starting API Developer Portal with SSL
If desired, API Developer Portal can be opened for secure access (HTTPS) with SSL certificate. You can review the API Developer Portal SSL Configuration documentation for detailed information.Access
After the above steps are completed and Pods on Kubernetes reachRunning status, you can access the new portal from the following address:

