Skip to content

Commit

Permalink
yaml adds and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rdrrichards committed Sep 2, 2022
1 parent 4c7163f commit 67c182d
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 16 deletions.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
39 changes: 23 additions & 16 deletions K8S/accounts.api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,27 @@ spec:
- name: accounts-api
image: rdrrichards/qiqo-accounts-api
imagePullPolicy: IfNotPresent
# ports:
# - containerPort: 80
ports:
- containerPort: 80
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"

---
apiVersion: v1
kind: Service
metadata:
name: accounts-clusterip-srv
spec:
type: ClusterIP
selector:
app: accounts-api
ports:
- name: accounts-api
protocol: TCP
port: 80
targetPort: 80
# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: accounts-clusterip-srv
# spec:
# type: ClusterIP
# selector:
# app: accounts-api
# ports:
# - name: accounts-api
# protocol: TCP
# port: 80
# targetPort: 80
7 changes: 7 additions & 0 deletions K8S/dnsutils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ spec:
- sleep
- "3600"
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"
restartPolicy: Always
33 changes: 33 additions & 0 deletions K8S/frontend-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: qiqo-frontend-deployment
labels:
app: qiqo-frontend
spec:
replicas: 1
selector:
matchLabels:
app: qiqo-frontend
template:
metadata:
labels:
app: qiqo-frontend
annotations:
dapr.io/enabled: 'true'
dapr.io/app-id: 'qiqo-frontend'
dapr.io/app-port: '80'
spec:
containers:
- name: qiqo-frontend
image: rdrrichards/qiqo-frontend
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"
13 changes: 13 additions & 0 deletions K8S/frontend-nodeport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: frontend-np-srv
spec:
type: NodePort
selector:
app: qiqo-frontend
ports:
- name: qiqo-frontend
protocol: TCP
port: 80
targetPort: 80

0 comments on commit 67c182d

Please sign in to comment.