You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Install [Oracle VM VirtualBox](https://www.virtualbox.org/wiki/Downloads)
13
14
1. Install [Vagrant](https://vagrantup.com/)
14
15
15
16
## Getting started
16
-
1. Clone this repository `git clone https://github.com/oracle/vagrant-boxes`
17
-
1. Change into the `vagrant-boxes/ContainerTools` folder
17
+
1. Clone this repository `git clone https://github.com/oracle/vagrant-projects`
18
+
1. Change into the `vagrant-projects/ContainerTools` folder
18
19
1. Run `vagrant up; vagrant ssh`
19
20
1. Within the guest, run Podman commands, for example `podman run -it oraclelinux:7-slim` to run an Oracle Linux 7 container, or `podman run -ti oraclelinux:8-slim` to run an Oracle Linux 8 container
Copy file name to clipboardExpand all lines: OCNE/README.md
+60-41Lines changed: 60 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,45 +1,47 @@
1
-
# Vagrant project to set up Oracle Linux Cloud Native Environment on Oracle Linux 8
1
+
# Vagrant project to set up Oracle Cloud Native Environment on Oracle Linux 8
2
2
3
3
This Vagrant project will deploy and configure the following components:
4
4
5
5
- One or more master nodes (one by default, 3 in HA mode)
6
6
- One or more worker nodes (2 by default)
7
-
- An optional operator node for the Oracle Linux Cloud Native Environment
7
+
- An optional operator node for the Oracle Cloud Native Environment
8
8
Platform API Server and Platform CLI tool (default is to install these
9
9
components on the first master node)
10
10
11
11
If you enable multiple master nodes, an operator node is automatically deployed
12
12
to provide egress routing for the cluster.
13
13
14
-
All master and worker nodes will have the Oracle Linux Cloud Native
14
+
All master and worker nodes will have the Oracle Cloud Native
15
15
Environment Platform Agent installed and configured to communicate with the
16
16
Platform API Server on the operator node.
17
17
18
-
The installation includes the Kubernetes module for Oracle Linux Cloud
19
-
Native Environment which deploys Kubernetes 1.18.10 configured to use
18
+
The installation includes the Kubernetes module for Oracle Cloud
19
+
Native Environment which deploys Kubernetes [1.24.8](https://docs.oracle.com/en/operating-systems/olcne/1.5/relnotes/components.html#d672e108) configured to use
20
20
the CRI-O runtime interface. Two runtime engines are installed, runc and
21
21
Kata Containers.
22
22
23
-
You may optionally enable the deployment of the Helm and Istio modules. Note
24
-
that enabling the Istio module will automatically enable the Helm module.
23
+
You may optionally enable the deployment of the Helm, Istio, MetalLB or Gluster
24
+
modules. Note that enabling the Istio, MetalLB or Gluster modules will
25
+
automatically enable the Helm module.
25
26
26
27
_Note:_ Kata Containers requires Intel hardware virtualization support and
27
28
will not work in a VirtualBox guest until nested virtualization support is
28
29
released for Intel CPUs.
29
30
30
31
## Prerequisites
31
32
32
-
1. Read the [prerequisites in the top level README](../README.md#prerequisites) to set up Vagrant with either VirtualBox or KVM
33
-
1.[vagrant-env](https://github.com/gosuri/vagrant-env) plugin is optional but
33
+
1. Read the [prerequisites in the top level README](../README.md#prerequisites)
34
+
to set up Vagrant with either VirtualBox or KVM
35
+
2.[vagrant-env](https://github.com/gosuri/vagrant-env) plugin is optional but
34
36
makes configuration much easier
35
37
36
38
## Quick start
37
39
38
40
1. Clone this repository `git clone https://github.com/oracle/vagrant-projects`
39
-
1. Change into the `vagrant-projects/OLCNE` directory
40
-
1. Run `vagrant up`
41
+
2. Change into the `vagrant-projects/OCNE` directory
42
+
3. Run `vagrant up`
41
43
42
-
Your Oracle Linux Cloud Native Environment is ready!
44
+
Your Oracle Cloud Native Environment is ready!
43
45
44
46
From any master node (e.g. master1) you can check the status of the cluster (as
45
47
the `vagrant` user). E.g.:
@@ -56,30 +58,33 @@ to the Dashboard from a browser on your Vagrant host, you will need to set
56
58
`BIND_PROXY` to `true` in your `.env.local` file.
57
59
58
60
To access the Kubernetes Dashboard, remember to use `localhost` or `127.0.0.1`
59
-
in the URL, i.e. <http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/>.
61
+
in the URL, i.e. <http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/>.
62
+
To obtain token from any Master node, you may run: `kubectl -n kubernetes-dashboard get secret -o=jsonpath='{.items[?(@.metadata.annotations.kubernetes\.io/service-account\.name=="kubernetes-dashboard")].data.token}' | base64 --decode`
registry for Oracle Cloud Native Environment images.
128
145
129
146
For performance reasons, we recommend using the closest Oracle Container Registry mirror to your region. A list of available regions can be found on the [Regions and Availability Domains](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) page of the Oracle Cloud Infrastructure documentation.
130
147
131
-
To specify an Oracle Container Registry mirror, either edit the Vagrantfile or install the vagrant-env plugin and create a .env.local file that specifies the mirror.
148
+
To specify an Oracle Container Registry mirror, either edit the `Vagrantfile` or install the vagrant-env plugin and create a `.env.local` file that specifies the mirror.
132
149
133
150
The following syntax can be used to specify a mirror:
134
151
@@ -145,16 +162,18 @@ Mainly used for development.
145
162
146
163
- The following parameters can be set to use specific component version:
147
164
`OLCNE_VERSION`, `NGINX_IMAGE`.
148
-
-`NB_MASTERS` (default: none): override number of masters to deploy.
165
+
-`NB_MASTERS` (default: none): override number of masters to deploy. Requires `MULTI_MASTER=true` to function properly.
166
+
-`SUBNET` (default: `192.168.99`): Set the VM provider host-only / private network subnet.
167
+
-`UPDATE_OS` (default: false): Runs `dnf -y update` on the VM.
149
168
150
169
## Optional plugins
151
170
152
-
When installed, this Vagrantfile will make use of the following third party Vagrant plugins:
171
+
When installed, this `Vagrantfile` will make use of the following third party Vagrant plugins:
0 commit comments