Skip to content

Commit 10b0cd2

Browse files
committed
readme
1 parent fbfaf98 commit 10b0cd2

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,42 @@ Implements the Dockerfiles and Kubernetes configuration for
3737

3838
* `presentation`: Contains all files for the final presentation.
3939

40+
## Commands
41+
> All commands used in the presentation video and further comands like configuration, deployment, upgrade, gcloud, istio can be found in `presentation/README.md`
42+
43+
## Commands required to build the images
44+
45+
### API
46+
47+
* `docker build -t inventory-api:vX inventory-app/inventory-api/api-server/`
48+
* `docker tag inventory-api:vX localhost:32000/inventory-api:vX`
49+
* `docker push localhost:32000/inventory-api:vX`
50+
51+
### UI
52+
53+
* `docker build -t inventory-ui:vX inventory-app/inventory-ui/ui-client/`
54+
* `docker tag inventory-ui:vX localhost:32000/inventory-ui:vX`
55+
* `docker push localhost:32000/inventory-ui:vX`
56+
57+
### DB
58+
> Not necessary. DockerHub image is used.
59+
60+
## Commands required to deploy the Kubernetes application (HELM)
61+
62+
### Preparation
63+
* Create storage on hard disk before creating the volume and claim
64+
`sudo mkdir -p /opt/postgre/data`
65+
66+
* DNS entry at `etc/hosts`
67+
`127.0.0.1 inventory-app-helm.com api.inventory-app-helm.com`
68+
69+
* TLS certificate (script or manually)
70+
`sh inventory-app/scripts/create_certificate`
71+
72+
### Kubernetes
73+
* Crate namespace
74+
`kubectl create namespace inventory-app-helm`
75+
76+
* Install HELM chart
77+
`helm install inventory-app-helm inventory-app/helm/inventory-app-chart/ -n inventory-app-helm`
78+

inventory-app/scripts/create_certificate

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
2525
subjectAltName = @alt_names
2626
[alt_names]
2727
DNS.1 = inventory-app.com
28-
DNS.2 = *.inventory-app.com" > $NAME.ext
28+
DNS.2 = *.inventory-app.com
29+
DNS.3 = inventory-app-helm.com
30+
DNS.4 = *.inventory-app-helm.com" > $NAME.ext
2931
# Create the signed certificate
3032
openssl x509 -req -in $NAME.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial \
3133
-out $NAME.crt -days 825 -sha256 -extfile $NAME.ext

0 commit comments

Comments
 (0)