This commit is contained in:
dstrebel 2020-03-30 11:46:51 -05:00
Родитель e35526dce2
Коммит 99217abd0a
5 изменённых файлов: 104 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,78 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-back
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-back
template:
metadata:
labels:
app: azure-vote-back
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
containers:
- name: azure-vote-back
image: redis
ports:
- containerPort: 6379
name: redis
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-back
spec:
ports:
- port: 6379
selector:
app: azure-vote-back
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-front
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-front
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
app: azure-vote-front
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
containers:
- name: azure-vote-front
image: microsoft/azure-vote-front:v1
ports:
- containerPort: 80
resources:
requests:
cpu: 250m
limits:
cpu: 500m
env:
- name: REDIS
value: "azure-vote-back"
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-front
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: azure-vote-front

6
namespaces/itops.yaml Normal file
Просмотреть файл

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
name: itops
name: itops

6
namespaces/team-a.yaml Normal file
Просмотреть файл

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
name: team-a
name: team-a

6
namespaces/team-b.yaml Normal file
Просмотреть файл

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
name: team-b
name: team-b

8
team-a/endpoints.yaml Normal file
Просмотреть файл

@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: endpoints
namespace: team-a
data:
logs: https://logs.endpoint.internal.corpnet
metrics: https://metrics.endpoint.internal.corpnet/v2