Coder Social home page Coder Social logo

Comments (3)

drnic avatar drnic commented on July 19, 2024

@domdom82 could you drop in your working walkthrough manifests and/or PR them into the docs? I was just about to give it a try.

from fissile.

domdom82 avatar domdom82 commented on July 19, 2024

@drnic I will provide a PR later, here is what worked for me (tried HAproxy bosh release sniff test):

role-manifest.yml

instance_groups:
- name: haproxy                    # The name of the instance group
  jobs:                            # BOSH jobs this group will have
  - name: haproxy
    release: haproxy               # The name of the BOSH release this is from
    properties:
      bosh_containerization:
        run:
          flight-stage: pre-flight
          memory: 128

  tags:
  run:                             # Runtime configuration
    scaling:                       # Auto-scaling limits
      min: 1
      max: 3
    memory: 256                    # Memory request for each instance (MB)
    virtual-cpus: 4                # CPU request for each instance
    exposed-ports:
    - name: http
      protocol: TCP                # TCP or UDP
      external: 80                 # Port visible outside the container
      internal: 80                 # Port inside the container
      public: false                # Whether to expose to outside the cluster

configuration:
  templates:
    networks.default.dns_record_name: '"((DNS_RECORD_NAME))"'
    networks.default.ip: '"((IP_ADDRESS))"'
    properties.ha_proxy.ssl_pem: '"((SSL_PEM))"'  # <<< your dark opinions here

variables:
- name: SSL_PEM
  options:
    description: server certificate chain
    secret: true
    required: true

opinions.yml:

properties:
  ha_proxy:
    backend_servers: 10.10.10.10 .    # <<< your opinions here

dark-opinions.yml:

properties:
  ha_proxy:
    ssl_pem: # <<< this must match the properties in role-manifest.yml
      - |
        -----BEGIN CERTIFICATE-----
        -----END CERTIFICATE-----
        -----BEGIN CERTIFICATE-----
        -----END CERTIFICATE-----
        -----BEGIN RSA PRIVATE KEY-----
        -----END RSA PRIVATE KEY-----

from fissile.

viovanov avatar viovanov commented on July 19, 2024

Thanks for going through all this @domdom82.
We're working on this nats containerized release as an example (we plan to keep it up-to-date because we're using it in our new CI pipeline).

from fissile.

Related Issues (20)

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.