diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3729ff0 --- /dev/null +++ b/.dockerignore @@ -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 \ No newline at end of file diff --git a/K8S/accounts.api.yaml b/K8S/accounts.api.yaml index 7b1aae1..00e04d5 100644 --- a/K8S/accounts.api.yaml +++ b/K8S/accounts.api.yaml @@ -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 diff --git a/K8S/dnsutils.yaml b/K8S/dnsutils.yaml index 72f4fb9..7853d27 100644 --- a/K8S/dnsutils.yaml +++ b/K8S/dnsutils.yaml @@ -11,4 +11,11 @@ spec: - sleep - "3600" imagePullPolicy: IfNotPresent + resources: + limits: + memory: 512Mi + cpu: "1" + requests: + memory: 256Mi + cpu: "0.2" restartPolicy: Always \ No newline at end of file diff --git a/K8S/frontend-deployment.yaml b/K8S/frontend-deployment.yaml new file mode 100644 index 0000000..76c381a --- /dev/null +++ b/K8S/frontend-deployment.yaml @@ -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" \ No newline at end of file diff --git a/K8S/frontend-nodeport.yaml b/K8S/frontend-nodeport.yaml new file mode 100644 index 0000000..38da820 --- /dev/null +++ b/K8S/frontend-nodeport.yaml @@ -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 \ No newline at end of file