Test clients for applying continuous test load on EnMasse clusters
- EnMasse installed on a cluster
- Monitoring stack installed on test clients cluster
-
(Optional) Modify plans
-
Create new namespace
oc new-project amq-upgrade-test
-
Ensure tenant-edit example clusterrole or similar is created
-
Create a service account for the test clients to use
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: enmasse
namespace: <ENMASSE_INFRA_NAMESPACE>
name: test-clients
- Create a role binding between the above service account and the
tenant-edit
clusterrole
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: "enmasse.io:test-clients"
labels:
app: enmasse
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: enmasse.io:tenant-edit
subjects:
- kind: ServiceAccount
name: test-clients
namespace: <ENMASSE_INFRA_NAMESPACE>
userNames:
name: system:serviceaccount:openshift-enmasse:test-clients
- Create an AuthenticationService for the addressspace
apiVersion: admin.enmasse.io/v1beta1
kind: AuthenticationService
metadata:
name: none-authservice
spec:
type: none
- Create an addressspace for the test infrastructure
apiVersion: enmasse.io/v1beta1
kind: AddressSpace
metadata:
name: upgrade-test
spec:
type: standard
plan: standard-unlimited
authenticationService:
name: none-authservice
-
Note the following details from the EnMasse cluster
- Master API URL
- Token for service account
- Run
oc get serviceaccount test-clients -n amq-upgrade-test -o yaml
- Run
- Namespace of test address space
- Sample is set to
amq-upgrade-test
above
- Sample is set to
- Test address space name
- Sample is set to
upgrade-test
above
- Sample is set to
-
Apply the above values to the deployments for the test configurations
-
Setup Application monitoring operator which will install prometheus and grafana
-
Create new namespace
oc new-project amq-upgrade-test
-
Label namespace
oc label namespace amq-upgrade-test monitoring-key=middleware
-
Apply the test clients to the clients cluster
oc apply -f ./kubernetes