demo update

This commit is contained in:
2025-11-15 19:27:31 +09:00
parent 7a85b80f60
commit 78e3cc39eb
18 changed files with 235 additions and 0 deletions

View File

@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: getuers
spec:
replicas: 1
selector:
matchLabels:
app: voyger-assign-getusers
template:
metadata:
labels:
app: voyger-assign-getusers
spec:
serviceAccountName: voyger-assign
containers:
- name: voyger-assign-getusers
image: harbor.icurfer.com/voyger-assign/getusers:0.0
volumeMounts:
- name: db-data
mountPath: /usr/src/app/data
volumes:
- name: db-data
persistentVolumeClaim:
claimName: voyger-assign

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: getusers
spec:
selector:
app: voyger-assign-getusers
ports:
- protocol: TCP
port: 80
targetPort: 5000

13
base/kustomization.yaml Normal file
View File

@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: voyger-assign
resources:
- namespace.yaml
- persistentVolumeClaim.yaml
- serviceAccounts.yaml
- virtualService.yaml
- signUp
- getUsers

6
base/namespace.yaml Normal file
View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: voyger-assign
labels:
istio-injection: enabled

View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: voyger-assign
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "1Gi"

View File

@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: voyger-assign
automountServiceAccountToken: false # Pod 안에 SA token을 자동 마운트x

View File

@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: signup
spec:
replicas: 1
selector:
matchLabels:
app: voyger-assign-signup
template:
metadata:
labels:
app: voyger-assign-signup
spec:
serviceAccountName: voyger-assign
containers:
- name: voyger-assign-signup
image: harbor.icurfer.com/voyger-assign/signup:0.0
volumeMounts:
- name: db-data
mountPath: /usr/src/app/data
volumes:
- name: db-data
persistentVolumeClaim:
claimName: voyger-assign

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml

12
base/signUp/service.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: signup
spec:
selector:
app: voyger-assign-signup
ports:
- protocol: TCP
port: 80
targetPort: 5000

28
base/virtualService.yaml Normal file
View File

@ -0,0 +1,28 @@
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
name: voyger-assign
namespace: voyger-assign
spec:
gateways:
- istio-system/shared-gateway
- mesh
hosts:
- voyger-assign.sample.test
http:
- match:
- uri:
prefix: /signup
route:
- destination:
host: signup.voyger-assign.svc.cluster.local
port:
number: 80
- match:
- uri:
prefix: /users
route:
- destination:
host: getusers.voyger-assign.svc.cluster.local
port:
number: 80