Skip to content

Commit

Permalink
added yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrebel committed Mar 30, 2020
1 parent e35526d commit 99217ab
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 0 deletions.
78 changes: 78 additions & 0 deletions cluster-apps/azure-vote.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions namespaces/itops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
name: itops
name: itops
6 changes: 6 additions & 0 deletions namespaces/team-a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
name: team-a
name: team-a
6 changes: 6 additions & 0 deletions namespaces/team-b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
name: team-b
name: team-b
8 changes: 8 additions & 0 deletions team-a/endpoints.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 99217ab

Please sign in to comment.