Skip to content

Commit

Permalink
Update charts
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekrana committed Aug 29, 2023
1 parent 10f2323 commit aa7c531
Show file tree
Hide file tree
Showing 16 changed files with 139 additions and 3 deletions.
6 changes: 6 additions & 0 deletions k8s/charts/tech-stack/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: service-1
repository: file://service-1
version: 0.1.0
digest: sha256:dcf94c60736c5c0091aa04a20627d6c8f2cf562cfd5baa2d09f06927e56f82e6
generated: "2023-08-29T14:15:55.063057694+02:00"
7 changes: 6 additions & 1 deletion k8s/charts/tech-stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: tech-stack
description: A Helm chart for Kubernetes
description: A Helm chart for Tech Stack

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -22,3 +22,8 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: '0.1.0'

dependencies:
- name: service-1
version: '0.1.0'
repository: file://service-1
7 changes: 7 additions & 0 deletions k8s/charts/tech-stack/Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'

tasks:
dependency-update:
desc: create-k3d
cmds:
- helm dependency update
Binary file added k8s/charts/tech-stack/charts/service-1-0.1.0.tgz
Binary file not shown.
24 changes: 24 additions & 0 deletions k8s/charts/tech-stack/service-1/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: service-1
description: A Helm chart for Service 1

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: '0.1.0'
88 changes: 88 additions & 0 deletions k8s/charts/tech-stack/service-1/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Default values for service-1.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
repository: service-1
# pullPolicy: IfNotPresent
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: ''

imagePullSecrets: []
nameOverride: ''
fullnameOverride: ''

serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ''

podAnnotations: {}

podSecurityContext:
{}
# fsGroup: 2000

securityContext:
{}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
type: ClusterIP
# port: 80
port: 5000

ingress:
enabled: false
className: ''
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
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

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []

affinity: {}
2 changes: 1 addition & 1 deletion k8s/charts/tech-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
repository: nginx
# repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ''
Expand Down
3 changes: 2 additions & 1 deletion k8s/deployments/local/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,5 @@ tasks:
generate-charts:
desc: Generate charts
cmds:
- helm template tech-stack ../../../k8s/charts/tech-stack --include-crds --values values.yaml
- cd ../../../k8s/charts/tech-stack && task dependency-update
- helm template tech-stack ../../../k8s/charts/tech-stack --include-crds --values values.yaml > /tmp/output.yaml
5 changes: 5 additions & 0 deletions k8s/deployments/local/a.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Deleting outdated charts

0 comments on commit aa7c531

Please sign in to comment.