Merge "Update portieris trusted caCert"
This commit is contained in:
@@ -10,11 +10,11 @@ You can install Portieris on |prod| from the command line.
|
||||
|
||||
.. rubric:: |proc|
|
||||
|
||||
#. Locate the Portieris tarball in /usr/local/share/applications/helm.
|
||||
#. Locate the Portieris tarball in ``/usr/local/share/applications/helm``.
|
||||
|
||||
For example:
|
||||
|
||||
/usr/local/share/applications/helm/portieris-<version>.tgz
|
||||
``/usr/local/share/applications/helm/portieris-<version>.tgz``
|
||||
|
||||
#. Upload the application.
|
||||
|
||||
@@ -22,32 +22,32 @@ You can install Portieris on |prod| from the command line.
|
||||
|
||||
~(keystone_admin)]$ system application-upload /usr/local/share/applications/helm/portieris-<version>.tgz
|
||||
|
||||
#. Set caCert helm overrides if applicable.
|
||||
#. Set TrustedCACert helm overrides if applicable.
|
||||
|
||||
In order to specify registries or notary servers signed by a custom |CA|
|
||||
certificate, the caCert: CERTIFICATE override must be added to the
|
||||
portieris-certs helm chart. This must be passed as the b64enc of the |CA|
|
||||
certificate, the ``TrustedCACert:`` CERTIFICATE override must be added to
|
||||
the portieris Helm chart. This must be passed as the ``b64enc`` of the |CA|
|
||||
certificate and may contain 1 or more |CA| Certificates.
|
||||
|
||||
For example:
|
||||
|
||||
|
||||
#. Create the caCert.yaml override file.
|
||||
#. Create the TrustedCACert.yaml override file.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
~(keystone_admin)]$ echo 'caCert: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURYVENDQWtXZ0F3SUJBZ0lKQUpjVHBXcTk4SWNSTUEwR0NTcUdTSWIzRFFFQkN3VUFNRVV4Q3pBSkJnTlYKQkFZVEFrRlZNUk13RVFZRFZRUUlEQXBUYjIxbExWTjBZWFJsTVNFd0h3WURWUVFLREJoSmJuUmxjbTVsZENCWAphV1JuYVhSeklGQjBlU0JNZEdRd0hoY05NVGd3T0RFMk1qQXlPREl3V2hjTk1qRXdOakExTWpBeU9ESXdXakJGCk1Rc3dDUVl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VcGxONUE4MVROUmlMYVFVTXB5dzQ4Y08wNFcyOWY1aFA2aGMwVDMKSDJpU212OWY2K3Q5TjBvTTFuWVh1blgwWNJZll1aERmQy83c3N3eDhWcW5uTlNMN0lkQkhodGxhRHJGRXBzdQpGZzZOODBCbGlDclJiN2FPcUk4TWNjdzlCZW9UUk9uVGxVUU5RQkEzTjAyajJvTlhYL2loVHQvZkhNYlZGUFRQCi9nPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=' > caCert.yaml
|
||||
PEMFILE='/home/sysadmin/mycacert.pem'
|
||||
CATOTRUST=$( base64 -w0 "$PEMFILE" )
|
||||
echo "TrustedCACert: $CATOTRUST" > TrustedCACert.yaml
|
||||
|
||||
#. Apply the override file.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
~(keystone_admin)]$ system helm-override-update portieris portieris-certs portieris --values caCert.yaml
|
||||
~(keystone_admin)]$ system helm-override-update portieris portieris portieris --values TrustedCACert.yaml
|
||||
|
||||
#. Apply the application.
|
||||
#. Apply the Portieris application.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
~(keystone_admin)]$ system application-apply portieris
|
||||
|
||||
|
||||
~(keystone_admin)]$ system application-apply portieris
|
||||
@@ -27,9 +27,9 @@ This server certificate is used by Portieris webhook for secure communication
|
||||
with ``kube-apiserver``.
|
||||
|
||||
In order for Portieris on the |prod| to securely access registries or notary
|
||||
servers with certificates signed by a custom |CA| certificate, the caCert:
|
||||
CERTIFICATE override must be added to the portieris-certs Helm chart so that
|
||||
Portieris trusts the custom |CA| certificate.
|
||||
servers with certificates signed by a custom |CA| certificate, the
|
||||
``TrustedCACert:`` CERTIFICATE override must be added to the portieris Helm
|
||||
chart so that Portieris trusts the custom |CA| certificate.
|
||||
|
||||
This must be passed as the base-64 encoded (b64enc) format of the |CA|
|
||||
certificate and may contain one or more |CA| certificates.
|
||||
|
||||
Reference in New Issue
Block a user