Skip to content

stormshift/clusters

Repository files navigation

Clusters repository

contains the cluster configuration from our StormShift OCP clusters. Rollout via OpenShift GitOps / ArgoCD and Red Hat Advances Cluster Manager.

Directories:

.
├── argocd                              # Contains ArgoCD configurations
└── configuration                       # Kustomize cluster configuration rollout via ArgoCD
    ├── base
    ├── components
    │   ├── alertreceiver
    │   └── sealed-secrets-operator
    └── overlays
        ├── common                        # common included from all clusters
        ├── ocp1                          # ocp1 cluster configuration
        ├── ocp2                          # ocp2 cluster configuration
        ├── ocp3                          # ocp3 cluster configuration
        ├── ocp4                          # ocp4 cluster configuration
        ├── ocp5                          # ocp5 cluster configuration
        ├── ocp6                          # ocp6 cluster configuration
        ├── ocp7                          # ocp7 cluster configuration
        ├── ocp8                          # ocp8 cluster configuration
        └── rhacm                         # rhacm cluster configuration

Add to an cluster

  • Install OpenShift GitOps from OperatorHub
  • Create ArgoCD Application
export CLUSTER_NAME=stormshift-ocpX
oc apply -f - <<EOF
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: cluster-configuration
  namespace: openshift-gitops
spec:
  destination:
    server: 'https://kubernetes.default.svc'
  project: default
  source:
    path: configuration/overlays/$CLUSTER_NAME
    repoURL: 'https://github.com/stormshift/clusters.git'
    targetRevision: main


EOF

Build differ image

export VERSION=$(date +%Y%m%d%H%M)
export IMAGE="quay.io/stormshift/gitops-differ:${VERSION}"

podman build --platform linux/amd64,linux/arm64 \
  -f gitops-differ.Containerfile \
  --manifest ${IMAGE}  .
podman manifest push ${IMAGE}

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages