-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added local folder, renamed namespace
Signed-off-by: alfonso.iazzetti <alfonso.iazzetti@host.docker.internal>
- Loading branch information
alfonso.iazzetti
committed
Sep 5, 2022
1 parent
6d12fca
commit 5b06857
Showing
9 changed files
with
113 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
# Mock EC | ||
|
||
## ENV REQUIREMENTS | ||
|
||
``` | ||
JAVA 1.8 | ||
Docker | ||
``` | ||
|
||
## How to run | ||
|
||
Go in the root folder of the project and then: | ||
|
||
### Build image | ||
``` | ||
docker build -f Dockerfile -t mock-ec-prf-image:latest . | ||
``` | ||
|
||
### Run | ||
|
||
To run the docker: | ||
|
||
``` | ||
docker run --name mock-ec-prf-cont mock-ec-prf-image:latest | ||
``` | ||
|
||
or, with Kubernetes: | ||
|
||
``` | ||
kubectl apply --kustomize kustomize/local/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mock-ec-prf | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 0 | ||
type: RollingUpdate | ||
template: | ||
spec: | ||
restartPolicy: Always | ||
containers: | ||
- name: mock-ec-prf | ||
image: mock-ec-prf-image | ||
imagePullPolicy: Never | ||
ports: | ||
- name: mock-ec-prf | ||
containerPort: 8484 | ||
protocol: TCP | ||
resources: | ||
requests: | ||
memory: 1Gi | ||
cpu: 300m | ||
limits: | ||
memory: 2Gi | ||
cpu: 400m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: mock-ec-prf | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
nginx.ingress.kubernetes.io/rewrite-target: /$2 | ||
nginx.ingress.kubernetes.io/ssl-redirect: 'false' | ||
nginx.ingress.kubernetes.io/use-regex: 'true' | ||
spec: | ||
rules: | ||
- http: | ||
paths: | ||
- pathType: Prefix | ||
path: /mock-ec-prf(/|$)(.*) | ||
backend: | ||
service: | ||
name: mock-ec-prf | ||
port: | ||
number: 8484 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: prf | ||
|
||
images: | ||
- name: mock-ec-prf-image | ||
#newName: nodopauatregistrypci.azurecr.io/mock-ec-prf | ||
#newTag: 1.1.1 | ||
|
||
resources: | ||
- namespace.yaml | ||
- ingress.yaml | ||
- ../base | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
patchesStrategicMerge: | ||
- deployment.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
labels: | ||
kubernetes.io/metadata.name: mock-ec-prf | ||
name: prf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ kind: Namespace | |
metadata: | ||
labels: | ||
kubernetes.io/metadata.name: mock-ec-prf | ||
name: mock-ec-prf | ||
name: prf |