Skip to content

Commit

Permalink
添加了 用户认证 功能
Browse files Browse the repository at this point in the history
  • Loading branch information
pVD7aD1J committed Dec 1, 2024
1 parent a74d14d commit b5c7aa1
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions blue-green/multi-service/app-a-ver2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apiVersion: v1
kind: Service
metadata:
name: go-app-a-v2
labels:
app: go-app
spec:
ports:
- name: http
port: 80
targetPort: http

# match both app and version
selector:
app: go-app-a
version: v2.0.0
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: go-app-a-v2
labels:
app: go-app
spec:
replicas: 2
selector:
matchLabels:
app: go-app-a
version: v2.0.0
template:
metadata:
labels:
app: go-app-a
version: v2.0.0
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9101"
spec:
containers:
- name: go-app-a
image: aplimasolutions/kube-deployment-strategies
ports:
- name: http
containerPort: 8080
- name: probe
containerPort: 8086
env:
- name: VERSION
value: v2.0.0
livenessProbe:
httpGet:
path: /live
port: probe
initialDelaySeconds: 5
periodSeconds: 5
readinessProbe:
httpGet:
path: /ready
port: probe
periodSeconds: 5

0 comments on commit b5c7aa1

Please sign in to comment.