Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init openshift appliance #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions content/cluster-installation/appliance/agent-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: v1alpha1
kind: AgentConfig
rendezvousIP: 192.168.8.2
metadata:
name: edge-gateway
hosts:
- hostname: edge-gateway
role: master
interfaces:
- name: enp2s0
macAddress: 84:8b:cd:4d:15:f9
networkConfig:
interfaces:
- name: enp2s0
type: ethernet
state: up
mac-address: 84:8b:cd:4d:15:f9
ipv4:
enabled: true
address:
- ip: 192.168.8.2
prefix-length: 24
dhcp: false
dns-resolver:
config:
server:
- 192.168.8.1
routes:
config:
- destination: 0.0.0.0/0
next-hop-address: 192.168.8.1
next-hop-interface: enp2s0
table-id: 254
22 changes: 22 additions & 0 deletions content/cluster-installation/appliance/appliance-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: v1beta1
kind: ApplianceConfig
ocpRelease:
version: 4.16.27
channel: stable
cpuArchitecture: x86_64
# PullSecret required for mirroring the OCP release payload
pullSecret: '{"auths":{"cloud.o...'
sshKey: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICEibaAML0mtppKRlNQpe1eqgXB05chuIQ9/0yg2vcYx robot-hackathon'
userCorePass: s3cr3t
enableDefaultSources: false
stopLocalRegistry: false
createPinnedImageSets: false
operators:
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16
packages:
- name: openshift-gitops-operator
channels:
- name: latest
- name: skupper-operator
channels:
- name: stable
18 changes: 18 additions & 0 deletions content/cluster-installation/appliance/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Appliance
linktitle: Appliance
description: Appliance
tags: ['appliance','air-gapped']
---
# Some information

```bash
curl -L -O https://mirror.openshift.com/pub/openshift-v4/amd64/clients/ocp/4.16.27/openshift-install-linux-4.16.27.tar.gz
tar xzvf openshift-install-linux-4.16.27.tar.gz
export APPLIANCE_IMAGE="quay.io/edge-infrastructure/openshift-appliance"
export APPLIANCE_ASSETS="$(pwd)/appliance_assets"
mkdir -p $APPLIANCE_ASSETS
podman run --rm -it --pull newer -v $APPLIANCE_ASSETS:/assets:Z $APPLIANCE_IMAGE generate-config
...
podman run --rm -it --pull newer --privileged --net=host -v $APPLIANCE_ASSETS:/assets:Z $APPLIANCE_IMAGE build
```
18 changes: 18 additions & 0 deletions content/cluster-installation/appliance/install-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
baseDomain: lan
metadata:
name: edge-gateway
compute:
- name: worker
replicas: 0
controlPlane:
name: master
replicas: 1
networking:
networkType: OVNKubernetes
machineNetwork:
- cidr: 192.168.8.0/24
platform:
none: {}
pullSecret: '{"auths":{"":{"auth":"dXNlcjpwYXNz"}}}'
sshKey: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICEibaAML0mtppKRlNQpe1eqgXB05chuIQ9/0yg2vcYx robot-hackathon'
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ nav:
- "MachineSet & UPI": cluster-configuration/MachineSets/VMware-UPI/index.md
- "Agent-based non-integrated": cluster-installation/vmware/agent-base-non-integrated/index.md
- Hosted Control Plane: cluster-installation/hosted-control-plane.md
- Appliance: cluster-installation/appliance/index.md
- Nvidia GPU:
- cluster-installation/gpu/index.md
- GPU on-prem: cluster-installation/gpu/gpu-on-prem.md
Expand Down