Installation¶
Warning
The installation process is also very basic at the moment. So for example only self-signed certificates are used at the moment. Because of this the given SDK also has a problem to connect correctly to these installation currently.
On Kubernetes¶
For the installation on a kubernetes helm
is used.
Supported versions |
---|
Requirements¶
-
Kubernetes
No specific version a the moment known. There are no special features used at the moment, so any version, which is not EOL should work.
-
Helm
-
Nginx-ingress-controller (if not already exist in your kubernetes)
run:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.1/deploy/static/provider/baremetal/deploy.yaml
and apply file with the content:
```¶
apiVersion: v1 kind: Service metadata: name: ingress-nginx-controller-loadbalancer namespace: ingress-nginx spec: selector: app.kubernetes.io/component: controller app.kubernetes.io/instance: ingress-nginx app.kubernetes.io/name: ingress-nginx ports: - name: http port: 80 protocol: TCP targetPort: 80 - name: https port: 443 protocol: TCP targetPort: 443 type: LoadBalancer ```
-
Cert-Manager
Installation:
-
Node label
To all avaialbe nodes, where it is allowed to be deployed, the label
hanami-node
must be assignedInfo
At the moment OpenHanami is only a single-node application. This will change in the near future, but at the moment it doesn't make sense to label more than one node.
Installation¶
From repository
git clone https://github.com/kitsudaiki/OpenHanami.git
cd OpenHanami/deploy/k8s
helm install \
--set docker.tag=DOCKER_IMAGE_TAG \
--set user.id=USER_ID \
--set user.name=USER_NAME \
--set user.passphrase=PASSPHRASE \
--set token.data=TOKEN_KEY \
--set api.domain=DOMAIN_NAME \
openhanami \
./openhanami/
From pre-build
Download the helm-chart from the file-share
helm install \
--set docker.tag=DOCKER_IMAGE_TAG \
--set user.id=USER_ID \
--set user.name=USER_NAME \
--set user.passphrase=PASSPHRASE \
--set token.data=TOKEN_KEY \
--set api.domain=DOMAIN_NAME \
openhanami \
openhanami-x.y.z.tgz
The --set
-flag defining the login-information for the initial admin-user of the instance:
-
USER_ID
- required
- Identifier for the new user. It is used for login and internal references to the user.
- String, which MUST match the regex
[a-zA-Z][a-zA-Z_0-9@]*
with between4
and256
characters length
-
USER_NAME
- required
- Better readable name for the user, which doesn't have to be unique in the system.
- String, which MUST match the regex
[a-zA-Z][a-zA-Z_0-9 ]*
with between4
and256
characters length
-
PASSPHRASE
- required
- Passphrase for the initial user
- String, with between
8
and4096
characters length
-
TOKEN_KEY
- required
- Key for the JWT-Tokens
- String
-
DOMAIN_NAME
- Domain for https-access.
- String
- default: local-hanami
-
DOCKER_IMAGE_TAG
- Docker-tag used from docker-hub
- String
- default: develop
After a successful installation the USER_ID
and PASSPHRASE
have to be used for login to the
system.
Using¶
-
check if all pods are running
-
get IP-address
-
add domain with ip to
/etc/hosts
-
use the address in your browser:
https://DOMAIN_NAME
-
login with
USER_ID
andPASSPHRASE
Note
Persistent data of hanami (checkpoints and so on) within the pod are mounted into the host directory
/etc/openhanami_data
, in case you want to save or delete them.