Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment 2094396239 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions arc-cicd-cluster/manifests/dev/azure-vote.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
apiVersion: v1
kind: Service
metadata:
name: azure-vote-back
namespace: dev
spec:
ports:
- port: 6379
selector:
app: azure-vote-back
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-front
namespace: dev
spec:
ports:
- port: 80
selector:
app: azure-vote-front
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-back
namespace: dev
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-back
template:
metadata:
labels:
app: azure-vote-back
spec:
containers:
- env:
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
image: shengrossdemoacr.azurecr.io/azvote/azure-vote-back:86dbbd0146dd4d6fc2fabd57d89ac5cd76feb79d
name: azure-vote-back
ports:
- containerPort: 6379
name: redis
nodeSelector:
beta.kubernetes.io/os: linux
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-front
namespace: dev
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-front
template:
metadata:
labels:
app: azure-vote-front
spec:
containers:
- env:
- name: REDIS
value: azure-vote-back
- name: TITLE
value: Voting Application
image: shengrossdemoacr.azurecr.io/azvote/azure-vote-front:86dbbd0146dd4d6fc2fabd57d89ac5cd76feb79d
name: azure-vote-front
ports:
- containerPort: 80
nodeSelector:
beta.kubernetes.io/os: linux
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: az-vote-front-ingress
namespace: dev
spec:
rules:
- http:
paths:
- backend:
service:
name: azure-vote-front
port:
number: 80
path: /(/|$)(.*)
pathType: Prefix
23 changes: 23 additions & 0 deletions arc-cicd-cluster/templates/dev/azure-vote/helm/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
23 changes: 23 additions & 0 deletions arc-cicd-cluster/templates/dev/azure-vote/helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v2
name: azure-vote
description: A Helm chart for azure-vote app

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1.16.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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: {{ .Values.imageRepo}}/azure-vote-back:6.0.8
env:
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
ports:
- containerPort: 6379
name: redis
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: azure-vote-back
spec:
ports:
- port: 6379
selector:
app: azure-vote-back
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-front
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-front
template:
metadata:
labels:
app: azure-vote-front
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
containers:
- name: azure-vote-front
image: {{ .Values.imageRepo}}/azure-vote-front:v3
ports:
- containerPort: 80
env:
- name: REDIS
value: azure-vote-back
- name: TITLE
value: {{ .Values.title}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: az-vote-front-ingress
spec:
rules:
- http:
paths:
- backend:
service:
name: azure-vote-front
port:
number: 80
path: {{ .Values.demoAppUrl}}(/|$)(.*)
pathType: Prefix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: azure-vote-front
spec:
type: {{ .Values.serviceType}}
ports:
- port: 80
selector:
app: azure-vote-front
4 changes: 4 additions & 0 deletions arc-cicd-cluster/templates/dev/azure-vote/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: "Voting Application"
serviceType: ClusterIP
imageRepo: shengrossdemoacr.azurecr.io/azvote
demoAppUrl: "/"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: dev

images:
- name: shengrossdemoacr.azurecr.io/azvote/azure-vote-front
newTag: 86dbbd0146dd4d6fc2fabd57d89ac5cd76feb79d
- name: shengrossdemoacr.azurecr.io/azvote/azure-vote-back
newTag: 86dbbd0146dd4d6fc2fabd57d89ac5cd76feb79d
resources:
- manifests.yaml