-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add resources for cluster_type: sno to deploy ACM
- Loading branch information
Showing
11 changed files
with
301 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
ansible/roles/sno-post-cluster-install/defaults/main/storage.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../configure-local-storage/defaults/main.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
ansible/roles/sno-post-cluster-install/templates/localstorage.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annontations: | ||
openshift.io/node-selector: '' | ||
name: openshift-local-storage | ||
--- | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: local-operator-group | ||
namespace: openshift-local-storage | ||
spec: | ||
targetNamespaces: | ||
- openshift-local-storage | ||
--- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: local-storage-operator | ||
namespace: openshift-local-storage | ||
spec: | ||
installPlanApproval: Automatic | ||
name: local-storage-operator | ||
channel: stable | ||
{% if use_bastion_registry | default(false) %} | ||
source: {{ operator_index_name }} | ||
{% else %} | ||
source: redhat-operators | ||
{% endif %} | ||
sourceNamespace: openshift-marketplace |
15 changes: 15 additions & 0 deletions
15
ansible/roles/sno-post-cluster-install/templates/localvolume.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: "local.storage.openshift.io/v1" | ||
kind: "LocalVolume" | ||
metadata: | ||
name: "lv-worker-localstorage" | ||
namespace: "openshift-local-storage" | ||
spec: | ||
storageClassDevices: | ||
- storageClassName: "localstorage-sc" | ||
volumeMode: Filesystem | ||
fsType: xfs | ||
devicePaths: | ||
{% for i in range(sno_localstorage_lv_count) %} | ||
- "/dev/vg_ls/lv_sno_tv{{ '%02d' % i }}" | ||
{% endfor %} |
13 changes: 13 additions & 0 deletions
13
ansible/roles/sno-post-cluster-install/templates/localvolume2.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
apiVersion: "local.storage.openshift.io/v1" | ||
kind: "LocalVolume" | ||
metadata: | ||
name: "localvolume2" | ||
namespace: "openshift-local-storage" | ||
spec: | ||
storageClassDevices: | ||
- storageClassName: "localstorage2-sc" | ||
volumeMode: Filesystem | ||
fsType: xfs | ||
devicePaths: | ||
- {{ localvolume2_device }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: metal3.io/v1alpha1 | ||
kind: Provisioning | ||
metadata: | ||
name: provisioning-configuration | ||
spec: | ||
preProvisioningOSDownloadURLs: {} | ||
provisioningNetwork: Disabled | ||
watchAllNamespaces: true |
93 changes: 93 additions & 0 deletions
93
ansible/roles/sno-post-cluster-install/templates/minio.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: minio | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: minio | ||
name: minio | ||
namespace: minio | ||
spec: | ||
storageClassName: {{ minio_pv_storageclass }} | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 250Gi | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: minio | ||
namespace: minio | ||
labels: | ||
app.kubernetes.io/name: minio | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: minio | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: minio | ||
spec: | ||
containers: | ||
- command: | ||
- /bin/sh | ||
- -c | ||
- mkdir -p /storage/thanos && mkdir -p /storage/dr4hub/velero && for i in $(seq -f "%05g" 1 4000); do mkdir -p "/storage/vm$i-ibu"; done && minio server /storage | ||
env: | ||
- name: MINIO_ACCESS_KEY | ||
value: minio | ||
- name: MINIO_SECRET_KEY | ||
value: minio123 | ||
{% if not use_bastion_registry | default(false) %} | ||
image: quay.io/minio/minio:{{ minio_image_tag }} | ||
{% else %} | ||
image: {{ registry_host }}:{{ registry_port }}/minio/minio:{{ minio_image_tag }} | ||
{% endif %} | ||
name: minio | ||
ports: | ||
- containerPort: 9000 | ||
protocol: TCP | ||
volumeMounts: | ||
- mountPath: /storage | ||
name: storage | ||
volumes: | ||
- name: storage | ||
persistentVolumeClaim: | ||
claimName: minio | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: minio | ||
namespace: minio | ||
spec: | ||
ports: | ||
- port: 9000 | ||
protocol: TCP | ||
targetPort: 9000 | ||
selector: | ||
app.kubernetes.io/name: minio | ||
type: ClusterIP | ||
--- | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
name: minio | ||
namespace: minio | ||
spec: | ||
# tls: | ||
# termination: edge | ||
to: | ||
name: minio | ||
port: | ||
targetPort: 9000 |
16 changes: 16 additions & 0 deletions
16
ansible/roles/sno-post-cluster-install/templates/openshift-gitops-operator.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: openshift-gitops-operator | ||
namespace: openshift-operators | ||
spec: | ||
name: openshift-gitops-operator | ||
sourceNamespace: openshift-marketplace | ||
channel: {{ gitops_channel }} | ||
installPlanApproval: Automatic | ||
{% if use_bastion_registry | default(false) %} | ||
source: {{ operator_index_name }} | ||
{% else %} | ||
source: redhat-operators | ||
{% endif %} |