MarcoEidinger
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Flex Gateway Anypoint Flex Gateway is an ultrafast API gateway designed to manage and secure APIs running anywhere. Built to seamlessly integrate with DevOps and CI/CD workflows, Anypoint Flex Gateway delivers the performance required for the most demanding applications and microservices while providing enterprise security and manageability across any environment. ## Get repository ```shell helm repo add flex-gateway https://flex-packages.anypoint.mulesoft.com/helm helm repo update ``` ## Deploy ```shell helm upgrade ingress flex-gateway/flex-gateway \ -i --wait -n gateway --create-namespace \ --set-file registration.content=registration.yaml ``` ## Values | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | <pre>```{}```</pre> | | | autoscaling.behavior | object | <pre>```{}```</pre> | | | autoscaling.enabled | bool | <pre>```false```</pre> | Boolean indicating if the Horizontal Pod Autoscaler (HPA) is enabled. | | autoscaling.extraMetrics | list | <pre>```[]```</pre> | | | autoscaling.maxReplicas | int | <pre>```11```</pre> | The maximum number of replicas that the scaler is allowed to create. | | autoscaling.minReplicas | int | <pre>```2```</pre> | The minimum number of replicas that the scaler is allowed to create. | | autoscaling.targetCPUUtilizationPercentage | int | <pre>```50```</pre> | The average CPU usage percentage of all deployed pods. | | autoscaling.targetMemoryUtilizationPercentage | string | <pre>```null```</pre> | The average memory usage percentage of all deployed pods. | | dnsConfig | object | <pre>```{}```</pre> | Optionally customize the pod dnsConfig. | | dnsPolicy | string | <pre>```"ClusterFirst"```</pre> | Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'. By default, while using host network, name resolution uses the host's DNS. If you wish flex-gateway to keep resolving names inside the k8s network, use ClusterFirstWithHostNet. | | extraAnnotations | object | <pre>```{}```</pre> | Annotations to be added to the Deployment | | extraLabels | object | <pre>```{}```</pre> | Labels to be added to the Deployment | | extraVolumeMounts | list | <pre>```[]```</pre> | Additional volumeMounts. | | extraVolumes | list | <pre>```[]```</pre> | Additional volumes to the pod. | | gateway.connectionIdleTimeout | string | <pre>```null```</pre> | Defines the connection idle timeout of all apis. | | gateway.dataSources.kubernetes.enabled | bool | <pre>```true```</pre> | This configuration defines if the gateway will read resources from kubernetes. | | gateway.dataSources.kubernetes.selector | string | <pre>```null```</pre> | This configuration defines a selector (label query) that the gateway will use to filter the resources when generating the configuration. E.g. "label1=value1,label2=value2" will apply only the resources that have both labels "label1=value1" and "label2=value2". | | gateway.mode | string | <pre>```"local"```</pre> | Mode of operation of the gateway, can be local or connected | | gateway.scope | string | <pre>```"Cluster"```</pre> | Scope of the installation, can be Cluster or Namespace | | gateway.streamIdleTimeout | string | <pre>```null```</pre> | Defines the stream idle timeout of all apis. | | image.name | string | <pre>```"mulesoft/flex-gateway:1.5.4"```</pre> | | | image.pullPolicy | string | <pre>```"IfNotPresent"```</pre> | The pull policy for the image. Possible values: ifNotPresent, Always, Never. Ref: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy | | image.pullSecretName | string | <pre>```null```</pre> | The name of the secret that contains Docker registry credentials. The secret must exist in the same namespace as the helm release. | | ingressClass | object | <pre>```{```<br>&nbsp;``` "enabled": true,```<br>&nbsp;``` "name": null,```<br>&nbsp;``` "setAsDefault": false```<br>&nbsp;```}```</pre> | This section refers to the creation of the IngressClass resource Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class | | ingressClass.enabled | bool | <pre>```true```</pre> | Is this ingressClass enabled or not | | ingressClass.name | string | <pre>```null```</pre> | Name of the ingressClass. <releaseName>-<namespace> by default | | ingressClass.setAsDefault | bool | <pre>```false```</pre> | Is this the default ingressClass for the cluster | | livenessProbe | object | <pre>```{```<br>&nbsp;``` "exec": {```<br>&nbsp;``` "command": [```<br>&nbsp;``` "flexctl",```<br>&nbsp;``` "probe",```<br>&nbsp;``` "--check=liveness"```<br>&nbsp;``` ]```<br>&nbsp;``` },```<br>&nbsp;``` "failureThreshold": 5,```<br>&nbsp;``` "initialDelaySeconds": 10,```<br>&nbsp;``` "periodSeconds": 10,```<br>&nbsp;``` "timeoutSeconds": 10```<br>&nbsp;```}```</pre> | Liveness, readiness and startup probe values Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes | | minReadySeconds | int | <pre>```0```</pre> | `minReadySeconds` to avoid killing pods before we are ready | | nodeSelector | object | <pre>```{}```</pre> | Node labels for controller pod assignment Ref: https://kubernetes.io/docs/user-guide/node-selection/ | | podSecurityContext | object | <pre>```{```<br>&nbsp;``` "runAsNonRoot": true,```<br>&nbsp;``` "runAsUser": 65534,```<br>&nbsp;``` "seccompProfile": {```<br>&nbsp;``` "type": "RuntimeDefault"```<br>&nbsp;``` },```<br>&nbsp;``` "sysctls": [```<br>&nbsp;``` {```<br>&nbsp;``` "name": "net.ipv4.ip_unprivileged_port_start",```<br>&nbsp;``` "value": "0"```<br>&nbsp;``` }```<br>&nbsp;``` ]```<br>&nbsp;```}```</pre> | Security Context policies for controller pods See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for notes on enabling and using sysctls | | priorityClassName | string | <pre>```""```</pre> | | | readinessProbe | object | <pre>```{}```</pre> | | | registerSecretName | string | <pre>```null```</pre> | Deprecated - use registration.secretName. | | registration.content | string | <pre>```null```</pre> | If this field is provided, installation creates a Kubernetes secret resource that contains the contents of the registration files. | | registration.secretName | string | <pre>```null```</pre> | If this field is provided, registration requires that a Kubernetes secret with the given name exists. The secret must contain the content of the registration files. | | replicaCount | int | <pre>```1```</pre> | The number of deployment replicas. | | resources.limits.cpu | string | <pre>```"1000m"```</pre> | CPU resource limits in millicores. | | resources.limits.memory | string | <pre>```"1024Mi"```</pre> | Memory resource limits. | | resources.requests.cpu | string | <pre>```"250m"```</pre> | | | resources.requests.memory | string | <pre>```"512Mi"```</pre> | | | revisionHistoryLimit | int | <pre>```10```</pre> | Rollback limit | | service.allocateLoadBalancerNodePorts | bool | <pre>```true```</pre> | You can optionally disable node port allocation for a Service of type=LoadBalancer, by setting the field allocateLoadBalancerNodePorts to false. Will be ignored for Kubernetes versions older than 1.24 Ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation | | service.clusterIP | string | <pre>```""```</pre> | | | service.enabled | bool | <pre>```true```</pre> | Boolean indicating if a service to expose the deployment is created. | | service.externalIPs | list | <pre>```[]```</pre> | List of IP addresses at which the service is available Ref: https://kubernetes.io/docs/user-guide/services/#external-ips | | service.externalTrafficPolicy | string | <pre>```""```</pre> | Set external traffic policy to: "Local" to preserve source IP on providers supporting it. Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer | | service.extraAnnotations | object | <pre>```{}```</pre> | | | service.extraLabels | object | <pre>```{}```</pre> | | | service.extraPorts | list | <pre>```[]```</pre> | Additional ports to expose. | | service.healthCheckNodePort | int | <pre>```0```</pre> | Specifies the health check node port (numeric port number) for the service. If healthCheckNodePort isn’t specified, the service controller allocates a port from your cluster’s NodePort range. Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip | | service.http.appProtocol | bool | <pre>```false```</pre> | | | service.http.enabled | bool | <pre>```true```</pre> | Boolean indicating if the HTTP port should be enabled for the service | | service.http.nodePort | int | <pre>```0```</pre> | | | service.http.port | int | <pre>```80```</pre> | The service HTTP port | | service.http.targetPort | string | <pre>```null```</pre> | | | service.https.appProtocol | bool | <pre>```false```</pre> | | | service.https.enabled | bool | <pre>```true```</pre> | Boolean indicating if the HTTPS port should be enabled for the service | | service.https.nodePort | int | <pre>```0```</pre> | | | service.https.port | int | <pre>```443```</pre> | The service HTTPS port | | service.https.targetPort | string | <pre>```null```</pre> | | | service.ipFamilies | list | <pre>```[]```</pre> | List of IP families (e.g. IPv4, IPv6) assigned to the service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/ | | service.ipFamilyPolicy | string | <pre>```""```</pre> | Represents the dual-stack-ness requested or required by this Service. Possible values are SingleStack, PreferDualStack or RequireDualStack. The ipFamilies and clusterIPs fields depend on the value of this field. Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/ | | service.loadBalancerSourceRanges | list | <pre>```[]```</pre> | Used by cloud providers to connect the resulting `LoadBalancer` to a pre-existing static IP Ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer | | service.sessionAffinity | string | <pre>```""```</pre> | Must be either "None" or "ClientIP" if set. Kubernetes will default to "None". Ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies | | service.type | string | <pre>```"LoadBalancer"```</pre> | The type of service to create. Possible values: ClusterIP, NodePort, LoadBalancer, ExternalName. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types | | startupProbe | object | <pre>```{}```</pre> | | | tolerations | list | <pre>```[]```</pre> | Node tolerations for server scheduling to nodes with taints Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | | topologySpreadConstraints | list | <pre>```[]```</pre> | Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ | | updateStrategy | object | <pre>```{}```</pre> | The update strategy to apply to the Deployment |

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully