blob: 845fd473e0174a45814856f41535ed12c18ccdc7 [file] [log] [blame]
Sylwia Jakubek9404e772021-03-05 07:07:59 +00001.. This work is licensed under a Creative Commons Attribution 4.0
2.. International License.
3.. http://creativecommons.org/licenses/by/4.0
4.. Copyright 2021 Nokia
5
6.. Links
7.. _Cert-Manager Installation documentation: https://cert-manager.io/docs/installation/kubernetes/
8.. _Cert-Manager kubectl plugin documentation: https://cert-manager.io/docs/usage/kubectl-plugin/
9
10.. _oom_setup_paas:
11
Piotr Marcinkiewicz2ca8a472021-04-29 13:29:02 +020012ONAP PaaS set-up
13################
Sylwia Jakubek9404e772021-03-05 07:07:59 +000014
15Starting from Honolulu release, Cert-Manager and Prometheus Stack are a part
Piotr Marcinkiewicz2ca8a472021-04-29 13:29:02 +020016of k8s PaaS for ONAP operations and can be installed to provide
Sylwia Jakubek9404e772021-03-05 07:07:59 +000017additional functionality for ONAP engineers.
18
19The versions of PaaS compoents that are supported by OOM are as follows:
20
21.. table:: ONAP PaaS components
22
23 ============== ============= =================
24 Release Cert-Manager Prometheus Stack
25 ============== ============= =================
26 honolulu 1.2.0 13.x
27 ============== ============= =================
28
Sylwia Jakubek76f90e82021-04-14 09:51:30 +000029This guide provides instructions on how to install the PaaS
30components for ONAP.
Sylwia Jakubek9404e772021-03-05 07:07:59 +000031
Sylwia Jakubek76f90e82021-04-14 09:51:30 +000032.. contents::
33 :depth: 1
34 :local:
35..
Sylwia Jakubek9404e772021-03-05 07:07:59 +000036
37Cert-Manager
38============
39
40Cert-Manager is a native Kubernetes certificate management controller.
41It can help with issuing certificates from a variety of sources, such as
42Lets Encrypt, HashiCorp Vault, Venafi, a simple signing key pair, self
43signed or external issuers. It ensures certificates are valid and up to
44date, and attempt to renew certificates at a configured time before expiry.
45
46Installation steps
47------------------
48
49The recommended version of Cert-Manager for Kubernetes 1.19 is v1.2.0.
50Cert-Manager is deployed using regular YAML manifests which include all
51the needed resources (the CustomResourceDefinitions, cert-manager,
52namespace, and the webhook component).
53
54Full installation instructions, including details on how to configure extra
55functionality in Cert-Manager can be found in the
56`Cert-Manager Installation documentation`_.
57
58There is also a kubectl plugin (kubectl cert-manager) that can help you
59to manage cert-manager resources inside your cluster. For installation
60steps, please refer to `Cert-Manager kubectl plugin documentation`_.
61
62Installation can be as simple as::
63
64 > kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.2.0/cert-manager.yaml
65
Piotr Marcinkiewicz2ca8a472021-04-29 13:29:02 +020066Prometheus Stack (optional)
67===========================
Sylwia Jakubek9404e772021-03-05 07:07:59 +000068
69Prometheus is an open-source systems monitoring and alerting toolkit with
70an active ecosystem.
71
72Kube Prometheus Stack is a collection of Kubernetes manifests, Grafana
73dashboards, and Prometheus rules combined with documentation and scripts to
74provide easy to operate end-to-end Kubernetes cluster monitoring with
75Prometheus using the Prometheus Operator. As it includes both Prometheus
76Operator and Grafana dashboards, there is no need to set up them separately.
77
78Installation steps
79------------------
80
81The recommended version of kube-prometheus-stack chart for
82Kubernetes 1.19 is 13.x (which is currently the latest major chart version),
83for example 13.3.1.
84
85In order to install Prometheus Stack, you must follow these steps:
86
87- Create the namespace for Prometheus Stack::
88
89 > kubectl create namespace prometheus
90
91- Add the prometheus-community Helm repository::
92
93 > helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
94
95- Update your local Helm chart repository cache::
96
97 > helm repo update
98
99- To install the kube-prometheus-stack Helm chart in latest version::
100
101 > helm install prometheus prometheus-community/kube-prometheus-stack --namespace=prometheus
102
103 To install the kube-prometheus-stack Helm chart in specific version, for example 13.3.1::
104
105 > helm install prometheus prometheus-community/kube-prometheus-stack --namespace=prometheus --version=13.3.1