Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The YAML file describes a single Pod for deployment to Kubernetes which is a group of one or more containers and a ConfigMap. The Pod includes three containers:

  1. The js7joc container runs the joc-2-5-1 image and exposes port 4446. It uses a ConfigMap with the name hibernate-config to specify a volume mounted to the /var/sos-berlin.com/js7/joc/resources/joc directory.
  2. The js7con container runs the controller-2-5-1 image and exposes port 4444.
  3. The js7agent container runs the agent-2-5-1 image and exposes port 4445.

The following implications apply:

  • Each container runs a different image from the sosberlin/js7 repository and is assigned a unique port.
  • For the js7joc container the volumeMounts element specifies the hibernate-config ConfigMap which is mounted to the /var/sos-berlin.com/js7/joc/resources/joc directory.

...

Code Block
languageyml
titleExample for values.yaml
linenumberstrue
replicaCount: 1
image:
  repository: sosberlin/js7
  pullPolicy: IfNotPresent
  tag: "joc-2-5-1"
imageController:
  repository: sosberlin/js7
  pullPolicy: IfNotPresent
  tag: "controller-2-5-1"
imageAgent:
  repository: sosberlin/js7
  pullPolicy: IfNotPresent
  tag: "agent-2-5-1"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
  create: true
  annotations: {}
  name: ""
podAnnotations: {}
podSecurityContext: {}
securityContext: {}
service:
  type: ClusterIP
  port: 4446
serviceController:
  type: ClusterIP
  port: 4444
serviceAgent:
  type: ClusterIP
  port: 4445
ingress:
  enabled: false
  className: ""
  annotations: {}
  hosts:
    - host: chart-example.local
      paths:
        - path: /
          pathType: ImplementationSpecific
  tls: []
resources: {}
autoscaling:
  enabled: false
  minReplicas: 1
  maxReplicas: 100
  targetCPUUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}

Step-by-Step Instructions

To operate JOC Cockpit in a Kubernetes Cluster with the helm chart users adjust the values.yaml file that specifies the Docker images and Port Forwarded.

  1. Download the archive file: buildachart_js7_working.zipOpen a console window from the directory where you downloaded the .zip archive and extract the archive.

  2. Execute the below command to deploy working charts using the helm install command. We can do a dry-run of a helm install and enable debug to inspect the generated definitions.The service.internalPort value is used here to ensure that the Service and Deployment objects work together correctly.

    helm install buildachart_js7_working --dry-run --debug ./buildachart_js7_working --set service.internalPort=4446

  3. Run the below command to run the pods on the internal port.

    helm install js7 ./buildachart_js7_working --set service.type=NodePort

Further Resources