Skip to content

Add istio gateway template#183

Open
Yoann Ciabaud (yciabaud) wants to merge 4 commits into
cloudposse:masterfrom
yciabaud:feature-monochart-gateway
Open

Add istio gateway template#183
Yoann Ciabaud (yciabaud) wants to merge 4 commits into
cloudposse:masterfrom
yciabaud:feature-monochart-gateway

Conversation

@yciabaud
Copy link
Copy Markdown

Hi there I made a little addition to your project, I made a PR from it it you are interested in it too.

This adds the ability to create a istio gateway crd to expose istio services in an ingress gateway.

@goruha
Copy link
Copy Markdown
Member

Yoann Ciabaud (@yciabaud) awesome.
Thanks for the PR.
I did not work with istio.
Do we need one gateway per chart or it would be better to have a list of gateways?

Comment thread incubator/monochart/templates/gateway.yaml Outdated
Comment thread incubator/monochart/values.example.yaml Outdated
Comment thread incubator/monochart/values.yaml Outdated
Copy link
Copy Markdown
Member

@aknysh Andriy Knysh (aknysh) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@yciabaud
Copy link
Copy Markdown
Author

Sorry I forgot to come back here for a while, I have updated my PR, feel free to have a look at it.

# - domain.com

# Istio gateway
istio_gateways:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add [] since the list is commented out?

Suggested change
istio_gateways:
istio_gateways: []

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

labels: {}

istio_gateways:
- name: gateway1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yoann Ciabaud (@yciabaud) I think we should change the pattern now istio_gateways defined

istio_gateways:
  gateway1:
    enabled: true
    selector:
      istio: istio-gateway
    servers:
    - hosts:
      - '*.domain.com'
      port:
        name: http
        number: 80
        protocol: HTTP
      tls:
        httpsRedirect: true
    - hosts:
      - '*.domain.com'
      port:
        name: http-tls
        number: 443
        protocol: HTTP
      tls:
        mode: SIMPLE
        privateKey: /etc/istio/ingressgateway-certs/tls.key
        serverCertificate: /etc/istio/ingressgateway-certs/tls.crt

Copy link
Copy Markdown
Member

@goruha Igor Rodionov (goruha) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check the comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants