// Module included in the following assemblies:
//
// assembly-configure-infrastructure-configuration.adoc

[id='create-edit-infra-config-{context}']
= Creating and editing infrastructure configurations

You can create a new infrastructure configuration or edit an existing one. For more information, see link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#infrastructure-configuration-messaging[Infrastructure configuration].

.Procedure

ifeval::["{cmdcli}" == "oc"]
. Log in as a service operator:
+
[subs="attributes",options="nowrap"]
----
{cmdcli} login -u developer
----

. Change to the project where {ProductName} is installed:
+
[subs="attributes",options="nowrap"]
----
{cmdcli} project _{ProductNamespace}_
----
endif::[]

. Edit the existing infrastructure configuration, or create a new infrastructure configuration using the following example:
+
[source,yaml,options="nowrap",subs="attributes"]
----
apiVersion: admin.enmasse.io/v1beta1
kind: StandardInfraConfig
metadata:
  name: myconfig
spec:
  version: "{EnMasseVersion}"
  admin:
    resources:
      memory: 256Mi
  broker:
    resources:
      memory: 2Gi
      storage: 100Gi
    addressFullPolicy: PAGE
  router:
    resources:
      memory: 256Mi
    linkCapacity: 1000
    minReplicas: 1
----

. Apply the configuration changes:
+
[subs="attributes",options="nowrap"]
----
{cmdcli} apply -f standard-infra-config-example.yaml
----

. Monitor the pods while they are restarted:
+
[subs="attributes",options="nowrap"]
----
{cmdcli} get pods -w
----
+
The configuration changes are applied within several minutes.

