feat: 初始化零工后端代码
This commit is contained in:
41
gig-poc/infrastructure/k8s/redis.yaml
Normal file
41
gig-poc/infrastructure/k8s/redis.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gig-poc-redis
|
||||
namespace: gig-poc
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gig-poc-redis
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: gig-poc-redis
|
||||
spec:
|
||||
containers:
|
||||
- name: redis
|
||||
image: redis:7-alpine
|
||||
args: ["redis-server", "--appendonly", "yes"]
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
cpu: "500m"
|
||||
memory: "512Mi"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: gig-poc-redis
|
||||
namespace: gig-poc
|
||||
spec:
|
||||
selector:
|
||||
app: gig-poc-redis
|
||||
ports:
|
||||
- name: redis
|
||||
port: 6379
|
||||
targetPort: 6379
|
||||
Reference in New Issue
Block a user