This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -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/

View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: bulletin-board
description: Kiamol Ch11 app
type: application
version: 0.1.0
appVersion: 1.0.0

View File

@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: bulletin-board
app.kubernetes.io/instance: {{ .Release.Name }}
kiamol: ch11-lab
spec:
selector:
matchLabels:
app.kubernetes.io/name: bulletin-board
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: bulletin-board
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
containers:
- name: bulletin-board
image: {{ .Values.registryServer }}/{{ .Values.registryUser }}/bulletin-board:{{ .Values.imageBuildNumber }}-kiamol
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
imagePullSecrets:
- name: {{ .Values.registrySecretName }}

View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: bulletin-board
app.kubernetes.io/instance: {{ .Release.Name }}
kiamol: ch11-lab
spec:
ports:
- port: {{ .Values.servicePort }}
targetPort: http
selector:
app.kubernetes.io/name: bulletin-board
app.kubernetes.io/instance: {{ .Release.Name }}
type: {{ .Values.serviceType }}

View File

@@ -0,0 +1,12 @@
# port for the Service to listen on
servicePort: 8012
# type of the Service:
serviceType: LoadBalancer
# domain of the registry server - e.g docker.io for Docker Hub
registryServer: docker.io
# user portion of the image repostory:
registryUser: kiamol
# build number portion of the image tag:
imageBuildNumber: dev
# name of the Secret containing registry credentials:
registrySecretName: registry-creds