Skip to content

Instantly share code, notes, and snippets.

@pablorsk
Last active August 27, 2019 09:14
Show Gist options
  • Save pablorsk/386e79556be596f00d97cd0fd01fba14 to your computer and use it in GitHub Desktop.
Save pablorsk/386e79556be596f00d97cd0fd01fba14 to your computer and use it in GitHub Desktop.
Kubernetes: Helm + Node “Hello world”
<h1>Hello world!</h1>
FROM busybox
ADD app/index.html /www/index.html
EXPOSE 8005
CMD httpd -p 8005 -h /www; tail -f /dev/null
@sathyatvrcbe
Copy link

Can you also share the values.yaml file here? I am new to kubernetes and helm. Finding difficulties in installing this.

My values.yaml file is as follows

# Default values for helloworld-chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
  repository: reyesoft/hello-world
  tag: latest
  pullPolicy: IfNotPresent

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

service:
  name: hello-world
  type: LoadBalancer
  externalPort: 80
  internalPort: 8005

ingress:
  enabled: false
  annotations: {}
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
  hosts:
    - host: chart-example.local
      paths: []

  tls: []
  #  - secretName: chart-example-tls
  #    hosts:
  #      - chart-example.local

resources: {}
  # We usually recommend not to specify default resources and to leave this as a conscious
  # choice for the user. This also increases chances charts run on environments with little
  # resources, such as Minikube. If you do want to specify resources, uncomment the following
  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  # limits:
  #   cpu: 100m
  #   memory: 128Mi
  # requests:
  #   cpu: 100m
  #   memory: 128Mi

nodeSelector: {}

tolerations: []

affinity: {}

The output while trying to install is:

Error: release helloworld failed: Service "helloworld-helloworld-chart" is invalid: spec.ports[0].port: Invalid value: 0: must be between 1 and 65535, inclusive

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