Giter VIP home page Giter VIP logo

helm-charts's People

Contributors

dependabot[bot] avatar dnephin avatar jmorganca avatar mxyng avatar olzemal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

helm-charts's Issues

Allow for node and zone antiaffinity

We can have more than one connector pod running, but have no control over where this is placed in the cluster. We should have the option to define antiaffinity rules to ensure that the pods are on separate nodes, and ideally separate zones from each other.

If I find some time, I'm willing to contribute this change.

Log Level does not get configured using Environment

I tried increasing the log level to debug using the commented block in values.yaml but the logger never got set to debug.
https://github.com/infrahq/helm-charts/blob/main/charts/infra-server/values.yaml#L93

The output from kubectl describe pods -n infra-server infra-server-6cd74df587-6rlcf suggest that the log level gets set via the --log-level command arg instead.

Containers:
  server:
    Container ID:  containerd://9888f8cdc463554b5a8188644e977e3d6932d9a4a5406355b413bc0d9cc0fda5
    Image:         infrahq/infra:0.21.0
    Image ID:      docker.io/infrahq/infra@sha256:4ad59e72091ef27c733a197157f55d463f1b5908f11004abed143fab1969d889
    Ports:         8080/TCP, 8443/TCP, 9090/TCP
    Host Ports:    0/TCP, 0/TCP, 0/TCP
    Args:
      server
      -f
      /etc/infrahq/infra.yaml
      --log-level
      info
    State:          Running
      Started:      Fri, 14 Apr 2023 10:13:54 +0200
    Ready:          True
    Restart Count:  0
    Liveness:       http-get http://:http/healthz delay=10s timeout=1s period=10s #success=1 #failure=3
    Readiness:      http-get http://:http/healthz delay=10s timeout=1s period=10s #success=1 #failure=3
    Environment:
      INFRA_LOG_LEVEL:           debug
      INFRA_SERVER_DB_PASSWORD:  <set to the key 'password' in secret 'infra-server-postgres'>  Optional: false

Option to expose Connector via Ingress

Is your feature request related to a problem? Please describe.

When working in self-hosted environment, we route all traffic through ingress controller. The nodes are unaccessible on NodePort nor LoadBalancer provisioner is available. Setting service type to ClusterIP makes the destination point to internal cluster IP.

Describe the solution you'd like

Allow for configuring custom destination address, eg. infrahq.cluster.domain:443.

Describe alternatives you've considered

Installing LoadBalancer provisioner, exposing NodePort

Environment Details

$ infra version
 Client: 0.21.0
$ kubectl version
Client Version: v1.28.2
Server Version: v1.28.0

Self-hosted cluster

Additional context

Probably already possible via endpointAdds (https://github.com/infrahq/infra/blob/main/dev/connector.yaml#L12C1-L12C1) just not exposed in values.yaml

External database password not working as expected

The configuration for an external database as explained in the README does not seem to work:

---
config:
  dbHost: postgres.example.com
  dbPort: 5432
  dbName: mydatabase
  dbUsername: myusername
  dbPassword: env:POSTGRES_DB_PASSWORD

server:
  env:
    - name: POSTGRES_DB_PASSWORD
      valueFrom:
        secretKeyRef:
          name: mysecret
          key: mypassword

Starting the server with an accordingly prepared secret does not work (bad credentials). This does not occur when inserting the password into the values.yaml directly:

config:
  ...
  dbPassword: <somePassword>

It seems the server does not evaluate the prefix env: in order to use the mentioned environment variable instead of a string literal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.