Skip to content

Commit 9459a80

Browse files
jdestefano-mongojwilliams-mongo
authored andcommitted
DOCSP-5002 - Refactor upgrade for v0.11 (#25)
* DOCSP-5002 - Refactor upgrade for v0.11 * DOCSP-5002 - Clean up build errors and simplify version caveats. * DOCSP-5002 - Clarify versions. * DOCSP-5002 - Copy review edits.
1 parent 6dfdb80 commit 9459a80

File tree

7 files changed

+290
-193
lines changed

7 files changed

+290
-193
lines changed

conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
'fixed_only',
3939
'tabs',
4040
'icon',
41-
'source_constants'
41+
'source_constants',
42+
'xmlrole'
4243
]
4344

4445
templates_path = ['.templates']
@@ -138,6 +139,7 @@
138139
'.. |kdc| replace:: :abbr:`KDC (Key Distribution Center)`',
139140
'.. |kmip| replace:: :abbr:`KMIP (Key Management Interoperability)`',
140141
'.. |kms| replace:: :abbr:`KMS (Key Management Service)`',
142+
'.. |kubectl| replace:: :xml:`<mono><link target="https://kubernetes.io/docs/reference/kubectl/kubectl/">kubectl</link></mono>`',
141143
'.. |ldaps| replace:: :abbr:`LDAPS (Secure Lightweight Directory Access Protocol)`',
142144
'.. |ldap| replace:: :abbr:`LDAP (Lightweight Directory Access Protocol)`',
143145
'.. |mms-full| replace:: :opsmgr:`MongoDB Ops Manager </>`',

source/includes/toc-installation.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
file: /tutorial/install-k8s-operator
2+
description:
3+
Install the |k8s-op-full|.
4+
---
5+
file: /tutorial/upgrade-k8s-operator
6+
description: |
7+
Follow this upgrade procedure if you are running version 0.10 or
8+
later.
9+
---
10+
file: /tutorial/upgrade-k8s-operator-v9-and-earlier
11+
description:
12+
Follow this upgrade procedure if you are running version 0.9 or
13+
earlier.
14+
...
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
1. Change to the directory in which you cloned the |k8s-op-short|
2+
repository. The following steps depend on how your environment is
3+
configured:
4+
5+
.. tabs::
6+
7+
tabs:
8+
- id: kubectl
9+
name: Online using kubectl
10+
content: |
11+
12+
.. _upgrade-k8s-operator-kubectl:
13+
14+
2. Upgrade the |k8s-crds| for MongoDB deployments using the
15+
following |kubectl| command:
16+
17+
.. code-block:: sh
18+
19+
kubectl apply -f crds.yaml
20+
21+
#. If you use `OpenShift <https://www.openshift.com/>`__ as
22+
your |k8s| orchestrator, you need to allow OpenShift to
23+
manage the Security Context for the |k8s-op-short|.
24+
25+
Change the ``MANAGED_SECURITY_CONTEXT`` value as described
26+
in the next step.
27+
28+
#. You can edit the Operator |yaml| file to further customize
29+
your Operator before upgrading it.
30+
31+
a. Open your ``mongodb-enterprise.yaml`` in your preferred
32+
text editor.
33+
34+
#. You may need to add one or more of the following
35+
options:
36+
37+
.. include:: /includes/list-table-k8s-kubectl-install-options.rst
38+
39+
.. note::
40+
41+
Any values enclosed in single or double quotes
42+
*require* those quotes. Include the quotes when
43+
setting these values.
44+
45+
#. Upgrade the |k8s-op-short| using the following
46+
|kubectl| command:
47+
48+
.. code-block:: sh
49+
50+
kubectl apply -f mongodb-enterprise.yaml
51+
52+
To troubleshoot your |k8s-op-short|, see
53+
:ref:`review-k8s-op-logs`.
54+
55+
.. include:: /includes/fact-remove-k8s-resources-first.rst
56+
57+
- id: helmonline
58+
name: Online using Helm
59+
content: |
60+
61+
.. _upgrade-k8s-operator-helm:
62+
63+
2. Upgrade the latest version of the |k8s-op-short| using the
64+
following ``helm`` command:
65+
66+
.. code-block:: sh
67+
68+
helm template public/helm_chart > operator.yaml
69+
kubectl apply -f operator.yaml
70+
71+
You can customize your Chart before installing it by using
72+
the ``--set`` option. For this Chart, you may need to add
73+
one or more of the following options:
74+
75+
.. include:: /includes/list-table-k8s-helm-install-options-online.rst
76+
77+
To troubleshoot your |k8s-op-short|, see
78+
:ref:`review-k8s-op-logs`.
79+
80+
.. include:: /includes/fact-remove-k8s-resources-first.rst
81+
82+
- id: helmoffline
83+
name: Offline using Helm and Docker
84+
content: |
85+
86+
To upgrade the |k8s-op-short| on a host not connected to the
87+
Internet, you have two options, you can download the
88+
|k8s-op-short| files from either:
89+
90+
.. tabs::
91+
92+
tabs:
93+
- id: internet
94+
name: The Internet
95+
content: |
96+
97+
2. Upgrade the latest version of the |k8s-op-short|
98+
with modified pull policy values using the
99+
following ``helm`` command:
100+
101+
.. code-block:: sh
102+
103+
helm template --set registry.pullPolicy=IfNotPresent \
104+
public/helm_chart > operator.yaml
105+
kubectl apply -f operator.yaml
106+
107+
You can further customize your Chart before
108+
installing it by using the ``--set`` option. For
109+
this Chart, you may need to add one or more of the
110+
following options:
111+
112+
.. include:: /includes/list-table-k8s-helm-install-options-offline.rst
113+
114+
To troubleshoot your |k8s-op-short|, see
115+
:ref:`review-k8s-op-logs`.
116+
117+
.. include:: /includes/fact-remove-k8s-resources-first.rst
118+
119+
- id: host
120+
name: Another Host
121+
content: |
122+
123+
2. Upgrade the latest version of the |k8s-op-short|
124+
with modified pull policy values using the
125+
following ``helm`` command:
126+
127+
.. code-block:: sh
128+
129+
helm template --set registry.pullPolicy=IfNotPresent \
130+
public/helm_chart > operator.yaml
131+
kubectl apply -f operator.yaml
132+
133+
You can further customize your Chart before
134+
installing it by using the ``--set`` option. For
135+
this Chart, you may need to add one or more of the
136+
following options:
137+
138+
.. include:: /includes/list-table-k8s-helm-install-options-offline.rst

source/installation.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
:noprevnext:
2+
3+
============
4+
Installation
5+
============
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: singlecol
14+
15+
.. include:: /includes/toc/dfn-list-installation.rst
16+
17+
.. include:: /includes/toc/installation.rst
18+
19+
.. class:: hidden
20+
21+
.. toctree::
22+
:titlesonly:
23+
24+
/tutorial/install-k8s-operator
25+
/tutorial/upgrade-k8s-operator
26+
/tutorial/upgrade-k8s-operator-v9-and-earlier

0 commit comments

Comments
 (0)