Skip to content

Commit

Permalink
Add Development scripts and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rooftopcellist committed Jul 23, 2024
1 parent bfae713 commit d5049d5
Show file tree
Hide file tree
Showing 14 changed files with 550 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/crd/bases/eda.ansible.com_edas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,7 @@ spec:
description: The ingress type to use to reach the deployed instance
type: string
enum:
- None
- none
- Ingress
- ingress
Expand Down
11 changes: 11 additions & 0 deletions dev/catalogsource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: dev-eda-operator
namespace: partner-eda
spec:
displayName: 'Ansible Dev EDA Operator'
image: "quay.io/ansible/eda-server-operator-catalog:0.0.2"
publisher: 'Ansible EDA Dev Team'
sourceType: grpc
68 changes: 68 additions & 0 deletions dev/eda-cr/eda-k8s-ing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: eda.ansible.com/v1alpha1
kind: EDA
metadata:
name: eda
spec:
automation_server_url: https://awx-awx.apps.aap-dev.ocp4.testing.ansible.com
automation_server_ssl_verify: 'no'
service_type: ClusterIP
ingress_type: Ingress
no_log: false
image_pull_policy: Always
image_pull_secrets:
- redhat-operators-pull-secret
admin_password_secret: custom-admin-password

# -- Example image overrides
# image: quay.io/ansible/eda-server
# image_version: main
# image_web: quay.io/ansible/eda-ui
# image_web_version: 2.4.300
# image_web: quay.io/ansible/eda-ui
# image_web_version: latest
# image: quay.io/developer/eda-server
# image_version: dev

# -- Example extra settings
extra_settings:
- setting: EDA_MAX_RUNNING_ACTIVATIONS
value: '11'
- setting: DEFAULT_PULL_POLICY
value: "Always"

# CA Bundle
bundle_cacert_secret: my-custom-certs

# -- Resource Requirements
api:
replicas: 1
resource_requirements:
requests: {}
ui:
replicas: 1
resource_requirements:
requests: {}
scheduler:
replicas: 1
resource_requirements:
requests: {}
default_worker:
replicas: 2
resource_requirements:
requests: {}
activation_worker:
replicas: 3
resource_requirements:
requests: {}

database:
resource_requirements:
requests:
cpu: 50m
memory: 128Mi
# worker:
# replicas: 2
# resource_requirements:
# requests:
# cpu: 50m
# memory: 128Mi
68 changes: 68 additions & 0 deletions dev/eda-cr/eda-k8s-nodeport-cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: eda.ansible.com/v1alpha1
kind: EDA
metadata:
name: eda
spec:
automation_server_url: https://awx-awx.apps.aap-dev.ocp4.testing.ansible.com
automation_server_ssl_verify: 'no'
service_type: NodePort
ingress_type: None
no_log: false
image_pull_policy: Always
image_pull_secrets:
- redhat-operators-pull-secret
admin_password_secret: custom-admin-password

# -- Example image overrides
# image: quay.io/ansible/eda-server
# image_version: main
# image_web: quay.io/ansible/eda-ui
# image_web_version: 2.4.300
# image_web: quay.io/ansible/eda-ui
# image_web_version: latest
# image: quay.io/developer/eda-server
# image_version: dev

# -- Example extra settings
extra_settings:
- setting: EDA_MAX_RUNNING_ACTIVATIONS
value: '11'
- setting: DEFAULT_PULL_POLICY
value: "Always"

# CA Bundle
bundle_cacert_secret: my-custom-certs

# -- Resource Requirements
api:
replicas: 1
resource_requirements:
requests: {}
ui:
replicas: 1
resource_requirements:
requests: {}
scheduler:
replicas: 1
resource_requirements:
requests: {}
default_worker:
replicas: 2
resource_requirements:
requests: {}
activation_worker:
replicas: 3
resource_requirements:
requests: {}

database:
resource_requirements:
requests:
cpu: 50m
memory: 128Mi
# worker:
# replicas: 2
# resource_requirements:
# requests:
# cpu: 50m
# memory: 128Mi
68 changes: 68 additions & 0 deletions dev/eda-cr/eda-openshift-cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: eda.ansible.com/v1alpha1
kind: EDA
metadata:
name: eda
spec:
automation_server_url: https://awx-awx.apps.aap-dev.ocp4.testing.ansible.com
automation_server_ssl_verify: 'no'
service_type: ClusterIP
ingress_type: Route
no_log: false
image_pull_policy: Always
image_pull_secrets:
- redhat-operators-pull-secret
admin_password_secret: custom-admin-password

# -- Example image overrides
# image: quay.io/ansible/eda-server
# image_version: main
# image_web: quay.io/ansible/eda-ui
# image_web_version: 2.4.300
# image_web: quay.io/ansible/eda-ui
# image_web_version: latest
# image: quay.io/developer/eda-server
# image_version: dev

# -- Example extra settings
extra_settings:
- setting: EDA_MAX_RUNNING_ACTIVATIONS
value: '11'
- setting: DEFAULT_PULL_POLICY
value: "Always"

# CA Bundle
bundle_cacert_secret: my-custom-certs

# -- Resource Requirements
api:
replicas: 1
resource_requirements:
requests: {}
ui:
replicas: 1
resource_requirements:
requests: {}
scheduler:
replicas: 1
resource_requirements:
requests: {}
default_worker:
replicas: 2
resource_requirements:
requests: {}
activation_worker:
replicas: 3
resource_requirements:
requests: {}

database:
resource_requirements:
requests:
cpu: 50m
memory: 128Mi
# worker:
# replicas: 2
# resource_requirements:
# requests:
# cpu: 50m
# memory: 128Mi
54 changes: 54 additions & 0 deletions dev/eda-cr/eda-resource-quota-cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: eda.ansible.com/v1alpha1
kind: EDA
metadata:
name: eda-prod
spec:
automation_server_url: https://awx-awx.apps.aap-dev.ocp4.testing.ansible.com
automation_server_ssl_verify: 'no'
service_type: ClusterIP
ingress_type: Route
no_log: false
image_pull_policy: Always

api:
replicas: 1
resource_requirements:
requests:
cpu: 50m
memory: 350Mi
ui:
replicas: 1
resource_requirements:
requests:
cpu: 25m
memory: 64Mi
scheduler:
replicas: 1
resource_requirements:
requests:
cpu: 50m
memory: 256Mi
database:
resource_requirements:
requests:
cpu: 50m
memory: 128Mi
worker:
replicas: 5
resource_requirements:
requests:
cpu: 25m
memory: 200Mi

default_worker:
replicas: 2
resource_requirements:
requests:
cpu: 25m
memory: 200Mi
activation_worker:
replicas: 5
resource_requirements:
requests:
cpu: 25m
memory: 150Mi
30 changes: 30 additions & 0 deletions dev/eda-cr/lightweight-eda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: eda.ansible.com/v1alpha1
kind: EDA
metadata:
name: eda
spec:
extra_settings:
- setting: GIT_SSL_NO_VERIFY
value: "true"

api:
replicas: 1
resource_requirements:
requests: {}
ui:
replicas: 1
resource_requirements:
requests: {}
schedular:
replicas: 1
resource_requirements:
requests: {}
default_worker:
replicas: 2
resource_requirements:
requests: {}
activation_worker:
replicas: 3
resource_requirements:
requests: {}
9 changes: 9 additions & 0 deletions dev/samples/awx-connection-secret.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: v1
kind: Secret
metadata:
name: awx-connection-secret
stringData:
url: 'https://example-awx-awx.apps.aap-dev.ocp4.testing.ansible.com'
token: 'redacted-token-value'
ssl_verify: 'no'
8 changes: 8 additions & 0 deletions dev/secrets/admin-password-secret.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: Secret
metadata:
name: custom-admin-password
stringData:
password: password

7 changes: 7 additions & 0 deletions dev/secrets/custom-db-fields-encryption-secret.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Secret
metadata:
name: custom-secret-key
stringData:
secret_key: supersecuresecretkey
13 changes: 13 additions & 0 deletions dev/secrets/custom-pg-secret.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Secret
metadata:
name: custom-pg-secret
stringData:
database: 'eda'
host: 'ca-postgres'
password: 'test'
port: '5432'
type: 'managed'
username: 'eda'

Loading

0 comments on commit d5049d5

Please sign in to comment.