Skip to content

Commit

Permalink
chore: update k8s deploy yml;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jan 22, 2022
1 parent 6287e58 commit 79a4a34
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 49 deletions.
5 changes: 1 addition & 4 deletions deploy/kubernetes/deploy.fs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ spec:
spec:
automountServiceAccountToken: false
containers:
- image: lafyun/storage-service:0.7.0
- image: lafyun/storage-service:latest
name: storage-service
resources:
# requests:
# memory: "128Mi"
# cpu: "500m"
limits:
memory: "1024Mi"
cpu: "1000m"
Expand Down
7 changes: 3 additions & 4 deletions deploy/kubernetes/deploy.gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ spec:
app: gateway
spec:
automountServiceAccountToken: false
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- image: lafyun/gateway:0.7.1
- image: lafyun/gateway:latest
name: gateway
resources:
# requests:
# memory: "128Mi"
# cpu: "1000m"
limits:
memory: "1024Mi"
cpu: "1000m"
Expand Down
3 changes: 0 additions & 3 deletions deploy/kubernetes/deploy.sys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ spec:
- image: lafyun/system-server:latest
name: system-server
resources:
# requests:
# memory: "128Mi"
# cpu: "500m"
limits:
memory: "1024Mi"
cpu: "1000m"
Expand Down
12 changes: 1 addition & 11 deletions kubernetes-dev/deploy.fs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ spec:
spec:
automountServiceAccountToken: false
containers:
- image: lafyun/storage-service:0.7.0
- image: lafyun/storage-service:0.7.3
name: storage-service
resources:
# requests:
# memory: "128Mi"
# cpu: "500m"
limits:
memory: "256Mi"
cpu: "500m"
Expand All @@ -56,11 +53,4 @@ spec:
ports:
- containerPort: 9010
command: ["node", "/app/dist/index.js"]
volumeMounts:
- name: local-storage-service
mountPath: /app
restartPolicy: Always
volumes:
- name: local-storage-service
hostPath:
path: /Users/fugen/codes/less/laf/packages/storage-service
19 changes: 1 addition & 18 deletions kubernetes-dev/deploy.gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
# hostNetwork: true
# dnsPolicy: ClusterFirstWithHostNet
containers:
- image: lafyun/gateway:0.7.1
- image: lafyun/gateway:0.7.4
name: gateway
resources:
limits:
Expand All @@ -53,21 +53,4 @@ spec:
value: kubernetes
ports:
- containerPort: 80
volumeMounts:
- name: system-conf
mountPath: /etc/nginx/templates/system.conf.template
- name: app-conf
mountPath: /etc/nginx/templates/app.conf.template
- name: fs-conf
mountPath: /etc/nginx/templates/fs-proxy.conf.template
restartPolicy: Always
volumes:
- name: system-conf
hostPath:
path: /Users/fugen/codes/less/laf/packages/gateway/conf.kubernetes/system.conf
- name: app-conf
hostPath:
path: /Users/fugen/codes/less/laf/packages/gateway/conf.kubernetes/app.conf
- name: fs-conf
hostPath:
path: /Users/fugen/codes/less/laf/packages/gateway/conf.kubernetes/fs-proxy.conf
15 changes: 6 additions & 9 deletions kubernetes-dev/deploy.sys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
spec:
automountServiceAccountToken: true
containers:
- image: lafyun/system-server:0.7.1
- image: lafyun/system-server:0.7.2
name: system-server
resources:
limits:
Expand All @@ -58,9 +58,13 @@ spec:
- name: SYS_SERVER_SECRET_SALT
value: Rewrite_Your_Own_Secret_Salt_abcdefg1234567
- name: APP_SERVICE_IMAGE
value: lafyun/app-service:0.7.1
value: lafyun/app-service:0.7.2
- name: SERVICE_DRIVER
value: kubernetes
- name: APP_SERVICE_MEMORY_LIMIT
value: "128"
- name: APP_SERVICE_CPU_SHARES
value: "128"
- name: LOG_LEVEL
value: debug
- name: ACCOUNT_DEFAULT_APP_QUOTA
Expand All @@ -79,11 +83,4 @@ spec:
value: abc123
ports:
- containerPort: 9000
volumeMounts:
- name: local-system-server
mountPath: /app
restartPolicy: Always
volumes:
- name: local-system-server
hostPath:
path: /Users/fugen/codes/less/laf/packages/system-server

0 comments on commit 79a4a34

Please sign in to comment.