Create a new Phalanx environment#
Each separate installation of Phalanx is called an environment. An environment has a hostname, Vault server and path to its secrets, and a set of Phalanx applications that should be installed in that environment.
Each Phalanx environment must be installed in a separate Kubernetes cluster. Two Phalanx environments cannot coexist in the same cluster.
Before starting this process, ensure that you have met the requirements to run Phalanx and that you have decided on your handling of hostnames and TLS.
Creating an environment#
To create a new Phalanx environment, take the following steps:
Fork the Phalanx repository if this work is separate from the SQuaRE-managed environments.
Create a new
values-environment.yaml
file in environments. Start with a template copied from an existing environment that’s similar to the new environment. Edit it so thatname
,fqdn
,vaultUrl
, andvaultPathPrefix
at the top match your new environment. You may omitvaultUrl
for SQuaRE-managed environments. See Set up secrets management for more information about the latter two settings and additional settings you may need. If the environment will be hosted on Google Kubernetes Engine, also fill outgcp.projectId
,gcp.region
, andgcp.clusterName
with metadata about where the environment will be hosted. Enable the applications this environment should include.Do what DNS setup you can. If you already know the IP address where your instance will reside, create the DNS records (A or possibly CNAME) for that instance. If you are using a cloud provider or something like minikube where the IP address is not yet known, then you will need to create that record once the top-level ingress is created and has an external IP address.
Decide on your approach to user home directory storage. The Notebook Aspect (the
nublado
application) requires a POSIX file system. The most frequently used method of providing that file system is NFS mounts, but you may instead want to use persistent volume claims or a different file system that’s mounted on the Kubernetes cluster nodes and exposed to pods viahostPath
. Whatever storage you choose, you will need to configure appropriate mount points innublado
when you configure each application in the next step.For each enabled application, create a corresponding
values-environment.yaml
file in the relevant directory under applications. Customization will vary from application to application. The following applications have special bootstrapping considerations:Add the URL of your new environment to
docs/documenteer.toml
underphinx.linkcheck.ignore
. The Argo CD URL of your environment will be unreachable, so you need to tell Sphinx valid link checking to ignore it.
Next steps#
Define the secrets for your new environment and store them in Vault: Set up secrets management