Skip to content

Commit

Permalink
Merge pull request #668 from SUSE/ext-db
Browse files Browse the repository at this point in the history
External db only during deployment
  • Loading branch information
btat authored Jan 17, 2020
2 parents 7bb23e5 + e7e4ce3 commit d12079d
Showing 1 changed file with 3 additions and 53 deletions.
56 changes: 3 additions & 53 deletions xml/cap_admin_external_db.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,60 +165,10 @@ enable:
</tgroup>
</informaltable>
<para>
If this is an initial deployment, refer to the platform-specific instructions
to deploy <literal>uaa</literal> and/or <literal>scf</literal>:
After your configuration file has been updated, refer to the
platform-specific instructions to deploy <literal>uaa</literal> and/or
<literal>scf</literal>:
</para>
&deployment-platforms;
<para>
If this is an existing deployment, use <command>helm upgrade</command> to
update <literal>uaa</literal> and/or <literal>scf</literal> to use an
external database:
</para>
<procedure>
<step>
<para>
Upgrade <literal>uaa</literal>:
</para>
<screen>&prompt.user;helm upgrade <replaceable>susecf-uaa</replaceable> suse/uaa \
--values scf-config-values.yaml \
--version &latestuaachart;
</screen>
</step>
<step>
<para>
Wait until you have a successful <literal>uaa</literal> deployment before
going to the next steps, which you can monitor with the
<command>watch</command> command:
</para>
<screen>&prompt.user;watch --color 'kubectl get pods --namespace uaa'</screen>
</step>
<step>
<para>
Pass your <literal>uaa</literal> secret and certificate to <literal>scf</literal>:
</para>
<screen>&prompt.user;SECRET=$(kubectl get pods --namespace uaa \
--output jsonpath='{.items[?(.metadata.name=="uaa-0")].spec.containers[?(.name=="uaa")].env[?(.name=="INTERNAL_CA_CERT")].valueFrom.secretKeyRef.name}')

&prompt.user;CA_CERT="$(kubectl get secret $SECRET --namespace uaa \
--output jsonpath="{.data['internal-ca-cert']}" | base64 --decode -)"
</screen>
</step>
<step>
<para>
Upgrade <literal>scf</literal>:
</para>
<screen>&prompt.user;helm upgrade <replaceable>susecf-scf</replaceable> suse/cf \
--values scf-config-values.yaml \
--version &latestscfchart; \
--set "secrets.UAA_CA_CERT=${CA_CERT}"
</screen>
</step>
<step>
<para>
Monitor the deployment progress using the <command>watch</command> command:
</para>
<screen>&prompt.user;watch --color 'kubectl get pods --namespace scf'</screen>
</step>
</procedure>
</sect1>
</chapter>

0 comments on commit d12079d

Please sign in to comment.