Skip to content

Commit

Permalink
jenkins 추가, stable 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
aeeazip committed Jul 23, 2024
1 parent 20cb9f7 commit 6350276
Show file tree
Hide file tree
Showing 72 changed files with 4,161 additions and 119 deletions.
Binary file added bitnami/gateway-chart-0.1.0.tgz
Binary file not shown.
36 changes: 36 additions & 0 deletions bitnami/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: v1
entries:
gateway-chart:
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-24T02:41:25.040102+09:00"
description: A Helm chart for Kubernetes
digest: 9488282ae6d9e2d6999b0acec74b9452227a7b31b4eca084d823752a7cbd7559
name: gateway-chart
type: application
urls:
- https://github.com/CHUCA-PROJECT/BE-HELM-CHART/bitnami/gateway-chart-0.1.0.tgz
version: 0.1.0
jenkins:
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-24T02:41:25.042128+09:00"
description: A Helm chart for Kubernetes
digest: 4f7bef75040c7d0f35246595c3756b52f12457d276c3512565328b391207179e
name: jenkins
type: application
urls:
- https://github.com/CHUCA-PROJECT/BE-HELM-CHART/bitnami/jenkins-0.1.0.tgz
version: 0.1.0
member-chart:
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-24T02:41:25.042428+09:00"
description: A Helm chart for Kubernetes
digest: f078cb1575201ffc7861fec70e44f95d95ce44fd154f8f9a810382f22a62e3d0
name: member-chart
type: application
urls:
- https://github.com/CHUCA-PROJECT/BE-HELM-CHART/bitnami/member-chart-0.1.0.tgz
version: 0.1.0
generated: "2024-07-24T02:41:25.039699+09:00"
Binary file added bitnami/jenkins-0.1.0.tgz
Binary file not shown.
Binary file added bitnami/member-chart-0.1.0.tgz
Binary file not shown.
23 changes: 23 additions & 0 deletions gateway-chart/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
13 changes: 4 additions & 9 deletions gateway-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gateway-deployment
name: {{ include "gateway-chart.fullname" . }}
labels:
{{- include "gateway-chart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
strategy: # 원래 없었음
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
{{- end }}
selector:
matchLabels:
{{- include "gateway-chart.selectorLabels" . | nindent 6 }}
app: gateway # 원래 없었음
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -26,7 +22,6 @@ spec:
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
app: gateway # 원래 없었음
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand All @@ -36,7 +31,7 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: gateway
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
7 changes: 4 additions & 3 deletions gateway-chart/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: gateway-hpa
name: {{ include "gateway-chart.fullname" . }}
labels:
{{- include "gateway-chart.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: gateway-deployment
name: {{ include "gateway-chart.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
Expand All @@ -28,4 +30,3 @@ spec:
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

11 changes: 3 additions & 8 deletions gateway-chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}-ingress
name: {{ $fullName }}
labels:
{{- include "gateway-chart.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- if .Values.ingress.className }}
kubernetes.io/ingress.class: {{ .Values.ingress.className }}
{{- end }}
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
Expand All @@ -48,8 +45,6 @@ spec:
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- else }}
pathType: ImplementationSpecific
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
Expand Down
3 changes: 1 addition & 2 deletions gateway-chart/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: gateway-service
name: {{ include "gateway-chart.fullname" . }}
labels:
{{- include "gateway-chart.labels" . | nindent 4 }}
spec:
Expand All @@ -13,4 +13,3 @@ spec:
name: http
selector:
{{- include "gateway-chart.selectorLabels" . | nindent 4 }}
app: gateway
24 changes: 12 additions & 12 deletions gateway-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
replicaCount: 1

image:
repository: contest29.kr.ncr.ntruss.com/gateway-service
repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: 1
tag: ""

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -41,16 +41,16 @@ securityContext: {}

service:
type: ClusterIP
port: 8080
port: 80

ingress:
enabled: true
className: nginx
annotations:
kubernetes.io/ingress.class: nginx
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: localhost
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
Expand Down Expand Up @@ -82,10 +82,10 @@ readinessProbe:

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

# Additional volumes on the output Deployment definition.
volumes: []
Expand Down
23 changes: 23 additions & 0 deletions jenkins/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions jenkins/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.20.5
digest: sha256:5b98791747a148b9d4956b81bb8635f49a0ae831869d700d52e514b8fd1a2445
generated: "2024-07-16T12:08:51.969766+02:00"
24 changes: 24 additions & 0 deletions jenkins/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: jenkins
description: A Helm chart for Kubernetes

# 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: "1.16.0"
Loading

0 comments on commit 6350276

Please sign in to comment.