-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy wacruit-server (dev, prod) with sso (#88)
Co-authored-by: shinhong-park <[email protected]> Co-authored-by: davin111 <[email protected]>
- Loading branch information
1 parent
25f09f8
commit 580fd73
Showing
9 changed files
with
222 additions
and
4 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
namespace: argocd | ||
name: wacruit-server-dev | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: default | ||
source: | ||
repoURL: {{ .Values.spec.source.repoURL }} | ||
targetRevision: HEAD | ||
path: apps/wacruit-dev/wacruit-server | ||
destination: | ||
server: {{ .Values.spec.destination.server }} | ||
namespace: argocd | ||
syncPolicy: | ||
{{- .Values.spec.syncPolicy | toYaml | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
namespace: argocd | ||
name: wacruit-server | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: default | ||
source: | ||
repoURL: {{ .Values.spec.source.repoURL }} | ||
targetRevision: HEAD | ||
path: apps/wacruit-prod/wacruit-server | ||
destination: | ||
server: {{ .Values.spec.destination.server }} | ||
namespace: argocd | ||
syncPolicy: | ||
{{- .Values.spec.syncPolicy | toYaml | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: wacruit-server | ||
labels: | ||
app: wacruit-server | ||
namespace: wacruit-dev | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: wacruit-server | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
revisionHistoryLimit: 4 | ||
template: | ||
metadata: | ||
labels: | ||
app: wacruit-server | ||
spec: | ||
serviceAccountName: wacruit-server | ||
containers: | ||
- image: 405906814034.dkr.ecr.ap-northeast-2.amazonaws.com/wacruit-dev/wacruit-server:5 | ||
name: wacruit-server | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: wacruit-server | ||
namespace: wacruit-dev | ||
annotations: | ||
eks.amazonaws.com/role-arn: arn:aws:iam::405906814034:role/wacruit-dev-role | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: wacruit-dev | ||
name: wacruit-server | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: wacruit-server | ||
ports: | ||
- port: 80 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
namespace: wacruit-dev | ||
name: wacruit-server | ||
spec: | ||
gateways: | ||
- istio-ingress/waffle-ingressgateway | ||
- mesh | ||
hosts: | ||
- wacruit-server.wacruit-dev.svc.cluster.local | ||
http: | ||
- route: | ||
- destination: | ||
host: wacruit-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: wacruit-server | ||
labels: | ||
app: wacruit-server | ||
namespace: wacruit-prod | ||
spec: | ||
replicas: 0 | ||
selector: | ||
matchLabels: | ||
app: wacruit-server | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
revisionHistoryLimit: 4 | ||
template: | ||
metadata: | ||
labels: | ||
app: wacruit-server | ||
spec: | ||
serviceAccountName: wacruit-server | ||
containers: | ||
- image: 405906814034.dkr.ecr.ap-northeast-2.amazonaws.com/wacruit-prod/wacruit-server:3 | ||
name: wacruit-server | ||
resources: | ||
requests: | ||
cpu: 200m | ||
memory: 256Mi | ||
limits: | ||
cpu: 200m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: wacruit-server | ||
namespace: wacruit-prod | ||
annotations: | ||
eks.amazonaws.com/role-arn: arn:aws:iam::405906814034:role/wacruit-prod-role | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: wacruit-prod | ||
name: wacruit-server | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: wacruit-server | ||
ports: | ||
- port: 80 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
namespace: wacruit-prod | ||
name: wacruit-server | ||
spec: | ||
gateways: | ||
- istio-ingress/waffle-ingressgateway | ||
- mesh | ||
hosts: | ||
- wacruit-server.wacruit-prod.svc.cluster.local | ||
http: | ||
- route: | ||
- destination: | ||
host: wacruit-server |