Skip to content

Commit

Permalink
Merge pull request #455 from sparcs-kaist/deploy
Browse files Browse the repository at this point in the history
Deploy to EKS
  • Loading branch information
injoonH authored Mar 6, 2024
2 parents b74cac1 + 4b68aaa commit f9e5595
Show file tree
Hide file tree
Showing 14 changed files with 267 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,5 @@ config.cnf
# End of https://www.gitignore.io/api/visualstudiocode

docker-compose.yml

___*
1 change: 1 addition & 0 deletions deployment/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/secret.yaml
29 changes: 29 additions & 0 deletions deployment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Deployment Resource Definitions for Taxi Backend Service

### directories
```
├── README.md
├── base
│ ├── kustomization.yaml
│ └── server
│ ├── configmap.yaml
│ ├── deployment.yaml
│ ├── ingress.yaml
│ ├── sealed-secret.yaml
│ ├── secret-template.yaml
│ ├── secret.yaml
│ └── service.yaml
└── overlays
└── dev
└── kustomization.yaml
```

*under base folder*
- shared resource definitions for all environments

*under overlay folder*
- environment specific settings
- you can add more environments

### Using kubeseal
[Document Notion Link](https://www.notion.so/sparcs/K8S-Sealed-Secret-kubeseal-c3e315e429c442bebf8998b048404e17) [sparcs only]
20 changes: 20 additions & 0 deletions deployment/base/celery/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ara-celery
labels:
app: ara-celery
spec:
replicas: 1
selector:
matchLabels:
app: ara-celery
template:
metadata:
labels:
app: ara-celery
spec:
containers:
- name: ara-celery
image: 666583083672.dkr.ecr.ap-northeast-2.amazonaws.com/newara:v3.4.1
command: ["/newara/www/.docker/run-celery.sh"]
11 changes: 11 additions & 0 deletions deployment/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./server/deployment.yaml
- ./server/configmap.yaml
- ./server/service.yaml
- ./server/ingress.yaml
- ./server/sealed-secret.yaml
- ./redis/deployment.yaml
- ./redis/service.yaml
- ./celery/deployment.yaml
22 changes: 22 additions & 0 deletions deployment/base/redis/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ara-redis
labels:
app: ara-redis
spec:
replicas: 1
selector:
matchLabels:
app: ara-redis
template:
metadata:
labels:
app: ara-redis
spec:
containers:
- name: ara-redis
image: redis:6-alpine
ports:
- containerPort: 6379
name: ara-redis-port
12 changes: 12 additions & 0 deletions deployment/base/redis/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: ara-redis-service
spec:
selector:
app: ara-redis
ports:
- name: ara-redis-service-port
protocol: TCP
port: 6379
targetPort: ara-redis-port
11 changes: 11 additions & 0 deletions deployment/base/server/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ara-env
data:
SSO_CLIENT_ID: "newara"
DJANGO_ENV: "development"
C_FORCE_ROOT: "true"
AWS_BUCKET_NAME: "sparcs-newara"
AWS_BUCKET_NAME_STATIC: "sparcs-newara-static"
AWS_ACCESS_KEY_ID: "AKIAZWM3SVKMLLZANWPC"
53 changes: 53 additions & 0 deletions deployment/base/server/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ara-server
labels:
app: ara-server
spec:
replicas: 2
selector:
matchLabels:
app: ara-server
template:
metadata:
labels:
app: ara-server
spec:
containers:
- name: ara-server
image: 666583083672.dkr.ecr.ap-northeast-2.amazonaws.com/newara:v3.4.1
command: ["/newara/www/.docker/run.sh"]
ports:
- containerPort: 9000
envFrom:
- secretRef:
name: ara-secret
env:
- name: SSO_CLIENT_ID
valueFrom:
configMapKeyRef:
name: ara-env
key: SSO_CLIENT_ID
- name: DJANGO_ENV
valueFrom:
configMapKeyRef:
name: ara-env
key: DJANGO_ENV
- name: AWS_BUCKET_NAME
valueFrom:
configMapKeyRef:
name: ara-env
key: AWS_BUCKET_NAME
- name: AWS_BUCKET_NAME_STATIC
valueFrom:
configMapKeyRef:
name: ara-env
key: AWS_BUCKET_NAME_STATIC
- name: AWS_ACCESS_KEY_ID
valueFrom:
configMapKeyRef:
name: ara-env
key: AWS_ACCESS_KEY_ID
- name: NEWARA_REDIS_ADDRESS
value: "ara-redis-service"
35 changes: 35 additions & 0 deletions deployment/base/server/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/backend-protocol: HTTP
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/ssl-redirect: '443'
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/healthcheck-path: /api/status
alb.ingress.kubernetes.io/target-type: 'instance'
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:ap-northeast-2:666583083672:certificate/2f5020e0-01dd-43dd-aa7e-0699015d6b89
alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-2016-08
alb.ingress.kubernetes.io/group.name: sparcs-prod-external
name: ara-ingress
namespace: ara
finalizers:
- ingress.k8s.aws/resources
labels:
app: ara-ingress
spec:
ingressClassName: alb
rules:
- host: ara-api.sparcs.org
http:
paths:
- path: /
backend:
service:
name: ara-svc
port:
number: 9000
pathType: Prefix
tls:
- hosts:
- ara-api.sparcs.org
36 changes: 36 additions & 0 deletions deployment/base/server/sealed-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"kind": "SealedSecret",
"apiVersion": "bitnami.com/v1alpha1",
"metadata": {
"name": "ara-secret",
"namespace": "ara",
"creationTimestamp": null
},
"spec": {
"template": {
"metadata": {
"name": "ara-secret",
"namespace": "ara",
"creationTimestamp": null
},
"type": "Opaque",
"data": null
},
"encryptedData": {
"AWS_SECRET_ACCESS_KEY": "AgCWN1xPH4o5K6w2xelYuV4TH5etLtpvAq6JskUwhSpxfosoxscclX6DiHDU3BF8ZnY/0BxrqaZsRERlYfueSOIKqfOkWyZ6iDK1q6oIlckuzEwFU3tmyMp7GD38zG3iFaKY8U/Vggy68yxFWmM83o3I39XEoCe2/4Il5lKyq430pjjjSARa/gf+Q+rMc9aEFar7bzCiupHzp0zSujJNMahKcB0wcpalOzXYfJHmioe4ChA3OAtBfOjWSfOzGAd3jQwwRCKdpR5BTwMRMI68ZtKghiWQGNwXdZxzmxT9sZIAgVaVgq2GmZL2bT1NVIhN0jg3PECL8oKRP2PngkHO4V+fXbPiUeULdhflZw66VqppEiIeCD/YmnG4YEOs0HhuqqdU8vA3/w04bJrIUN9nAlRt2xLf7RdSQJNy2Jvg7yuzIXHtCSWJYrxa10FHKGnclSByVjCCzteMq1RJVTbn/HWKmxK5K938x/rK89dYKXYgXOTwCHR+7MmbxdYI4DWbrxzUQvOPwHX6UbogeVV2txMGDNdBJwA9fKk9nhbR8YlbX+R7+seQjoAIKlgI2IMN7HteyNdI5CYmT193I2raBw8/xpN2MjvDEB67QE4TbEeDj+YsSIT5dTwRRr66MwnvPzCsqhLaEkdB1SI8Wd0DU45ncfewjVJcBa2zlhqe+YUtP3ue6A9IQWa+MntQ6S35uWsYpVGFGfkP2a4drHh4WduM2lPcRaB9O4/q0nJa540skE15UjqLvE/4",
"HASH_SECRET_VALUE": "AgAJ8RAubzaELTHkQ45Vt7BFyGR1LEolMhKfBkZxTPTsHFGYT9taG/Ia2bVHAWk7GQd8TwjduQL9+Oi3m4efmZZx5UrSOhXy+GsbC0NwTWqvXiR/sn6kFjebfAXGVn9hN6pteixCFYCdhgTp/KIDle9QEd+SFvY7kfW7M1ZMLb6msy1ovxYq4+BnVirVMxiw0m9YbT0n0MZtW+TMDz1+raXrDXfC8y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kuFmYyMAZBs/LTkWnRbxz1ozZZdpwstnqrqqMmNACVylSdxmdvjrLciabK5CnhSWnhR1V390W3z/Dm+u2W8GdThL6Z4En+Vug=="
}
}
}
16 changes: 16 additions & 0 deletions deployment/base/server/secret-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Secret
metadata:
name: ara-secret
namespace: ara
type: Opaque
data:
AWS_SECRET_ACCESS_KEY: base64encoded
SENTRY_DSN: base64encoded
SECRET_KEY: base64encoded
HASH_SECRET_VALUE: base64encoded
NEWARA_DB_USER: base64encoded
NEWARA_DB_PASSWORD: base64encoded
NEWARA_ELASTICSEARCH_URL: base64encoded
PORTAL_JSESSIONID: base64encoded
SSO_SECRET_KEY: base64encoded
12 changes: 12 additions & 0 deletions deployment/base/server/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: ara-svc
spec:
type: NodePort
selector:
app: ara-server
ports:
- protocol: TCP
port: 9000
targetPort: 9000
7 changes: 7 additions & 0 deletions deployment/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: 666583083672.dkr.ecr.ap-northeast-2.amazonaws.com/newara
newTag: v3.0.1
resources:
- ../../base

0 comments on commit f9e5595

Please sign in to comment.