Skip to content

Commit f46c527

Browse files
authored
feat(ocne): Upgrade to OCNE 1.6 (#480)
* feat(ocne): Upgrade to OCNE 1.6 Signed-off-by: Hussam Qasem <[email protected]> * Remove Helm dependency Signed-off-by: Hussam Qasem <[email protected]> * feat(ocne): Upgrade to OCNE 1.6 Signed-off-by: Hussam Qasem <[email protected]> * feat(ocne): Upgrade to OCNE 1.6 Signed-off-by: Hussam Qasem <[email protected]> * Enable SELinux. Run-as vagrant Signed-off-by: Hussam Qasem <[email protected]> * Added --remote-time Signed-off-by: Hussam Qasem <[email protected]> * allow podman in detached mode to run beyond logout Signed-off-by: Hussam Qasem <[email protected]> --------- Signed-off-by: Hussam Qasem <[email protected]>
1 parent a4b1533 commit f46c527

File tree

9 files changed

+255
-122
lines changed

9 files changed

+255
-122
lines changed

OCNE/.env

+16-5
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,36 @@
6565
# OCNE_ENV_NAME="ocne-env"
6666
# OCNE_CLUSTER_NAME="ocne-cluster"
6767

68-
# Deploy the Helm module?
68+
# Pod networking technology: flannel, calico, none. Note: flannel is deprecated.
69+
# POD_NETWORK=calico
70+
71+
# Deploy Calico networking module? Sets POD_NETWORK=none. Place your config file in the current directory named: calico-config.yaml
72+
# DEPLOY_CALICO=false
73+
# CALICO_MODULE_NAME="ocne-calico"
74+
75+
# Deploy Multus networking module? Place your config file in the current directory named: multus-config.conf
76+
# DEPLOY_MULTUS=false
77+
# MULTUS_MODULE_NAME="ocne-multus"
78+
79+
# Deploy the Helm module? (deprecated)
6980
# DEPLOY_HELM=false
7081
# HELM_MODULE_NAME="ocne-helm"
7182

72-
# Deploy the Istio module? Requires the Helm module and will set DEPLOY_HELM to 1 if not set.
83+
# Deploy the Istio module?
7384
# DEPLOY_ISTIO=false
7485
# ISTIO_MODULE_NAME="ocne-istio"
7586

76-
# Deploy the Gluster module? Requires the Helm module and will set DEPLOY_HELM to 1 if not set.
87+
# Deploy the Gluster module? (deprecated)
7788
# DEPLOY_GLUSTER=false
7889
# GLUSTER_MODULE_NAME="ocne-gluster"
7990

80-
# Deploy the MetalLB module? Requires the Helm module and will set DEPLOY_HELM to 1 if not set.
91+
# Deploy the MetalLB module?
8192
# DEPLOY_METALLB=false
8293
# METALLB_MODULE_NAME="ocne-metallb"
8394

8495
# Override number of masters to deploy
8596
# This should not be changed -- for development purpose
8697
# NB_MASTERS=1
8798

88-
# Update Base OS
99+
# Update Base OS (experimental)
89100
# UPDATE_OS=false

OCNE/README.md

+20-14
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ Environment Platform Agent installed and configured to communicate with the
1616
Platform API Server on the operator node.
1717

1818
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-
the CRI-O runtime interface. Two runtime engines are installed, runc and
21-
Kata Containers.
19+
Native Environment which deploys Kubernetes [1.25.7](https://docs.oracle.com/en/operating-systems/olcne/1.6/relnotes/components.html#components)
20+
configured to use the CRI-O runtime interface. Two runtime engines are installed,
21+
[runC](https://docs.oracle.com/en/operating-systems/olcne/1.6/runtimes/runc.html#runc)
22+
and (now deprecated) [Kata](https://docs.oracle.com/en/operating-systems/olcne/1.6/runtimes/kata.html#kata) Containers.
2223

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.
24+
You may set your cluster networking to Calico (default), Flannel (deprecated) or Multus on top of either Calico or Flannel.
2625

27-
_Note:_ Kata Containers requires Intel hardware virtualization support and
26+
You may optionally enable the deployment of Istio, MetalLB or Gluster (deprecated)
27+
modules. Note that Helm is now installed automatically.
28+
29+
_Note:_ Kata Containers (now deprecated) require Intel hardware virtualization support and
2830
will not work in a VirtualBox guest until nested virtualization support is
2931
released for Intel CPUs.
3032

@@ -126,10 +128,13 @@ At least one worker node is required.
126128
Kubernetes Dashboard from a browser on your host.
127129
__Note__: you only need this if you want to expose the kubectl proxy to other
128130
hosts in your network.
129-
- `DEPLOY_HELM` (default: `false`): deploys the Helm module.
130-
- `DEPLOY_ISTIO` (default: `false`): deploys the Istio and Helm modules.
131-
- `DEPLOY_METALLB` (default: `false`): deploys the MetalLB and Helm modules.
132-
- `DEPLOY_GLUSTER` (default: `false`): deploys the Gluster and Helm modules.
131+
- `POD_NETWORK` (default: `calico`): deploys the Calico networking module with default configuration. Can be set to [`calico`, `flannel`, `none`].
132+
- `DEPLOY_CALICO` (default: `false`): deploys the Calico networking module with custom configuration `calico-config.yaml`.
133+
- `DEPLOY_MULTUS` (default: `false`): deploys the Multus networking module with custom configuration `multus-config.yaml`.
134+
- `DEPLOY_HELM` (default: `false`): deploys the Helm module (deprecated).
135+
- `DEPLOY_ISTIO` (default: `false`): deploys the Istio modules.
136+
- `DEPLOY_METALLB` (default: `false`): deploys the MetalLB module.
137+
- `DEPLOY_GLUSTER` (default: `false`): deploys the Gluster module (deprecated).
133138
__Note__: if `NB_WORKERS` is less than `3`, the `hyperconverged` `storageclass`
134139
is patched to adjust the number of Gluster replicas accordingly.
135140
__Note__: This provisioning script also installs Heketi on the operator node.
@@ -186,9 +191,10 @@ vagrant plugin install <name>...
186191

187192
## Product Documentation
188193

189-
- [Oracle Cloud Native Environment: Getting Started](https://docs.oracle.com/en/operating-systems/olcne/start/index.html)
190-
- [Oracle Cloud Native Environment: Using Container Orchestration](https://docs.oracle.com/en/operating-systems/olcne/orchestration/index.html)
191-
- [Oracle Cloud Native Environment: Using Container Runtimes](https://docs.oracle.com/en/operating-systems/olcne/runtimes/index.html)
194+
- [Oracle Cloud Native Environment: Getting Started](https://docs.oracle.com/en/operating-systems/olcne/1.6/start/)
195+
- [Oracle Cloud Native Environment: Container Orchestration](https://docs.oracle.com/en/operating-systems/olcne/1.6/orchestration/)
196+
- [Oracle Cloud Native Environment: Container Runtimes](https://docs.oracle.com/en/operating-systems/olcne/1.6/runtimes/)
197+
- [Oracle Cloud Native Environment: Platform CLI](https://docs.oracle.com/en/operating-systems/olcne/1.6/olcnectl/)
192198

193199
## Feedback
194200

OCNE/Vagrantfile

+27-11
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
5353

5454
# vCPUS and Memory for the VMs
5555
OPERATOR_CPUS = default_i('OPERATOR_CPUS', 1)
56-
OPERATOR_MEMORY = default_i("OPERATOR_MEMORY", 1024)
56+
OPERATOR_MEMORY = default_i('OPERATOR_MEMORY', 1024)
5757
MASTER_CPUS = default_i('MASTER_CPUS', 2)
58-
MASTER_MEMORY = default_i("MASTER_MEMORY", 2048)
58+
MASTER_MEMORY = default_i('MASTER_MEMORY', 2048)
5959
WORKER_CPUS = default_i('WORKER_CPUS', 1)
60-
WORKER_MEMORY = default_i("WORKER_MEMORY", 1024)
60+
WORKER_MEMORY = default_i('WORKER_MEMORY', 1024)
6161

6262
# Group VirtualBox containers
63-
VB_GROUP = default_s("VB_GROUP", "OCNE")
63+
VB_GROUP = default_s('VB_GROUP', 'OCNE')
6464

6565
# Multi-master setup. Deploy 3 masters in HA mode.
6666
MULTI_MASTER = default_b('MULTI_MASTER', false)
@@ -106,22 +106,33 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
106106
# Check the README.md file for more details.
107107
REGISTRY_OCNE = default_s('REGISTRY_OCNE', 'container-registry.oracle.com/olcne')
108108

109+
# Deploy Calico networking module?
110+
DEPLOY_CALICO = default_b('DEPLOY_CALICO', false)
111+
112+
# Deploy Multus networking module?
113+
DEPLOY_MULTUS = default_b('DEPLOY_MULTUS', false)
114+
115+
# Pod networking technology: flannel, calico, none. Note: flannel is deprecated.
116+
if DEPLOY_CALICO
117+
POD_NETWORK = 'none'
118+
else
119+
POD_NETWORK = default_s('POD_NETWORK', 'calico')
120+
end
121+
109122
# Deploy Istio?
110123
DEPLOY_ISTIO = default_b('DEPLOY_ISTIO', false)
111124

112125
# Deploy MetalLB?
113126
DEPLOY_METALLB = default_b('DEPLOY_METALLB', false)
114127

115-
# Deploy Gluster?
128+
# Deploy Gluster? (deprecated)
116129
DEPLOY_GLUSTER = default_b('DEPLOY_GLUSTER', false)
117130

118-
# Helm is required to deploy Istio, MetalLB or Gluster. Otherwise it's optional
119-
if DEPLOY_ISTIO or DEPLOY_METALLB or DEPLOY_GLUSTER
120-
DEPLOY_HELM = true
121-
else
122-
DEPLOY_HELM = default_b('DEPLOY_HELM', false)
123-
end
131+
# Deploy Helm? (deprecated)
132+
DEPLOY_HELM = default_b('DEPLOY_HELM', false)
124133

134+
CALICO_MODULE_NAME = default_s('CALICO_MODULE_NAME', 'ocne-calico')
135+
MULTUS_MODULE_NAME = default_s('MULTUS_MODULE_NAME', 'ocne-multus')
125136
HELM_MODULE_NAME = default_s('HELM_MODULE_NAME', 'ocne-helm')
126137
ISTIO_MODULE_NAME = default_s('ISTIO_MODULE_NAME', 'ocne-istio')
127138
METALLB_MODULE_NAME = default_s('METALLB_MODULE_NAME', 'ocne-metallb')
@@ -170,6 +181,11 @@ def provision_vm(vm, vm_args)
170181
args.push("--multi-master") if MULTI_MASTER
171182
args.push("--repo", YUM_REPO) unless YUM_REPO == ""
172183
args.push("--ocne-dev") if OCNE_DEV
184+
args.push("--pod-network", POD_NETWORK) if POD_NETWORK
185+
args.push("--with-calico") if DEPLOY_CALICO
186+
args.push("--calico-module-name", CALICO_MODULE_NAME) if DEPLOY_CALICO
187+
args.push("--with-multus") if DEPLOY_MULTUS
188+
args.push("--multus-module-name", MULTUS_MODULE_NAME) if DEPLOY_MULTUS
173189
args.push("--with-helm") if DEPLOY_HELM
174190
args.push("--helm-module-name", HELM_MODULE_NAME) if DEPLOY_HELM
175191
args.push("--with-istio") if DEPLOY_ISTIO

0 commit comments

Comments
 (0)