Compare commits
2 Commits
626bd07174
...
b445ca76a6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b445ca76a6 | ||
|
|
ae6617ebc6 |
23
base/app-resign/app-resign-deployment.yaml
Normal file
23
base/app-resign/app-resign-deployment.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: app-resign-api
|
||||
labels:
|
||||
app: app-resign-api
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: app-resign-api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: app-resign-api
|
||||
spec:
|
||||
containers:
|
||||
- name: app-resign-api
|
||||
image: juyou.tencentcloudcr.com/juyoutech/app-resign:latest
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
imagePullSecrets:
|
||||
- name: juyou-docker-tcr-secret
|
||||
14
base/app-resign/app-resign-role.yaml
Normal file
14
base/app-resign/app-resign-role.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: app-resign-role
|
||||
rules:
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["list", "create", "delete", "get", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["list", "get", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get"]
|
||||
11
base/app-resign/app-resign-service.yaml
Normal file
11
base/app-resign/app-resign-service.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: app-resign-api-service
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 3000
|
||||
name: app-resign-api
|
||||
selector:
|
||||
app: app-resign-api
|
||||
6
base/app-resign/kustomization.yaml
Normal file
6
base/app-resign/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
resources:
|
||||
- app-resign-service-account.yaml
|
||||
- app-resign-role.yaml
|
||||
- app-resign-role-binding.yaml
|
||||
- app-resign-deployment.yaml
|
||||
- app-resign-service.yaml
|
||||
@ -1,8 +0,0 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: app-resign-role
|
||||
rules:
|
||||
- apiGroups: [ "batch", "extensions", "apps" ]
|
||||
resources: [ "jobs", "deployments", "pods", "pods/log" ]
|
||||
verbs: [ "create", "get", "list", "watch", "create", "delete", "update", "patch" ]
|
||||
@ -12,7 +12,6 @@ spec:
|
||||
labels:
|
||||
app: download-api
|
||||
spec:
|
||||
serviceAccountName: app-resign-service-account
|
||||
containers:
|
||||
- name: download-api
|
||||
image: juyou.tencentcloudcr.com/juyoutech/download_api:latest
|
||||
|
||||
@ -3,6 +3,3 @@ resources:
|
||||
- download-api-service.yaml
|
||||
- download-deployment.yaml
|
||||
- download-service.yaml
|
||||
- app-resign-service-account.yaml
|
||||
- app-resign-role.yaml
|
||||
- app-resign-role-binding.yaml
|
||||
@ -14,6 +14,7 @@ resources:
|
||||
- ../base/tls
|
||||
- ../base/basic-auth
|
||||
- ../base/haproxy
|
||||
- ../base/app-resign
|
||||
- ingress.yaml
|
||||
|
||||
configMapGenerator:
|
||||
|
||||
22
gp2505/patch/app-resign-deployment_patch.yaml
Normal file
22
gp2505/patch/app-resign-deployment_patch.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: app-resign-api
|
||||
spec:
|
||||
replicas: 3
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: app-resign-api
|
||||
image: juyou.tencentcloudcr.com/juyoutech/app-resign:latest
|
||||
imagePullPolicy: Always
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: mysql-configmap
|
||||
- configMapRef:
|
||||
name: redis-configmap
|
||||
- configMapRef:
|
||||
name: storage-configmap
|
||||
env:
|
||||
- name: TZ
|
||||
value: "Asia/Shanghai"
|
||||
Loading…
x
Reference in New Issue
Block a user