Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.46 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.46 KB

WSO2 APK - Enforcer

This guide has information to setup enforcer component for development.

Prerequisites

The following should be installed in your dev machine.

Setting up for debugging

  1. Make following changes to helm-chart/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml file.

    containers:
      - name: enforcer	
        image: {{ .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.image }}	
        imagePullPolicy: {{ .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.imagePullPolicy }}	
        ports:	
          - containerPort: 8081	
            protocol: "TCP"	
          - containerPort: 9001	
            protocol: "TCP"	
    +     - containerPort: 5006	
    +       protocol: "TCP"
    ...
    ...
          - name: JAVA_OPTS	
    -       value: -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2
    +       value: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5006 -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2
  2. Start WSO2 APK.

  3. Port forward the port 5006.

    kubectl port-forward <apk-gateway-runtime-deployment-pod-name> -n apk 5006:5006
  4. Start debugging from port 5006 in IntelliJ IDEA.