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

Added Team ASX (Dev) #54

Open
wants to merge 1 commit into
base: main
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
5 changes: 5 additions & 0 deletions teams/team-asx/dev/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: "1.0"
name: team-asx-dev
description: Team ASX applications for the Dev environment.
version: 0.1.0
34 changes: 34 additions & 0 deletions teams/team-asx/dev/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: asx-ski-app
labels:
app: asx-ski-app
{{- toYaml .Values.labels | nindent 4 }}
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: asx-ski-app
template:
metadata:
labels:
app: asx-ski-app
spec:
containers:
- image: 045549827180.dkr.ecr.us-west-2.amazonaws.com/asxmod_group1:v1
name: asx-ski-app
ports:
- containerPort: 8080
resources:
requests:
memory: '50Mi'
cpu: '50m'
limits:
memory: '50Mi'
cpu: '50m'
securityContext:
privileged: false
#readOnlyRootFilesystem: false # guestbook neet to write to /var/run/apache2/apache2.pid
allowPrivilegeEscalation: false
51 changes: 51 additions & 0 deletions teams/team-asx/dev/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: asx-ingress
# namespace is specified as namespace destination in env/{dev,test,prod}/team-riker.yaml
labels:
app: asx-ski-app
{{- toYaml .Values.labels | nindent 4 }}
annotations:
{{ if eq .Values.spec.ingress.type "nginx" }}
kubernetes.io/ingress.class: "nginx"
{{ else }}
#rewrite does not exist yet in ALB
#https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/1571
#so commenting grouping feature
#alb.ingress.kubernetes.io/group.name: riker
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
{{ if .Values.spec.ingress.host }}
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":8080,"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-redirect: '443'
{{ else }}
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 8080}]'
{{ end }}
alb.ingress.kubernetes.io/tags: Environment={{ .Values.labels.env }},Team=ASX
{{ end }}
{{ if .Values.spec.ingress.host }}
external-dns.alpha.kubernetes.io/set-identifier: {{ .Values.spec.clusterName }}
external-dns.alpha.kubernetes.io/aws-weight: '{{ .Values.spec.ingress.route53_weight }}'
{{ end }}
spec:
{{ if eq .Values.spec.ingress.type "nginx" }}
ingressClassName: nginx
{{ else }}
ingressClassName: alb
{{ end }}
rules:
{{ if .Values.spec.ingress.host }}
- host: asx-ski-app.{{ .Values.spec.ingress.host }}
{{ else }}
- host:
{{ end }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: asx-ski-app
port:
number: 8080
13 changes: 13 additions & 0 deletions teams/team-asx/dev/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: asx-ski-app
labels:
app: asx-ski-app
{{- toYaml .Values.labels | nindent 4 }}
spec:
ports:
- port: 8080
targetPort: 8080
selector:
app: asx-ski-app
8 changes: 8 additions & 0 deletions teams/team-asx/dev/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
labels:
env: dev
team: asx
spec:
env:
ingress:
host:
type: alb