Skip to content

Commit

Permalink
Merge branch 'gh-7-ui-develop' of github.com:jpelbertrios/Kai into gh-7
Browse files Browse the repository at this point in the history
…-ui-develop
  • Loading branch information
macenturalxl1 committed Dec 16, 2020
2 parents 57b9168 + 8030e14 commit f32ab8f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ You can push your Docker image to AWS's Docker registry. To create a registry to
4. To access your Docker container app, you can get the url with the below command and request the EXTERNAL IP created to get the Kai UI App
`kubectl get svc -o wide`

#### (Useful Kubernetes Commands)
* `kubectl create -f <file>` - to create objects. E.g. to create the deployment service run the command: `kubectl create -f kai-deployment-service.yml`.
* `kubectl apply -f <file>` - to update existing objects. E.g. to update the deployment service created earlier, run the command: `kubectl apply -f kai-deployment-service.yml`.
* `kubectl delete [deployments|services|pods|nodes|etc]/[name_of_object]` - to delete objects. E.g to delete a deploymnet, run the command `kubectl delete deployments/kai-ui-deployment`.
* `kubectl get [deployments|services|pods|nodes|etc]` - to get a list of all the instances of the chosen resource currently ruunning in your cluster.
* `kubectl descriibe [deployments|services|pods|nodes|etc]` - to get details on the chosen resource currently running in your cluster.

For more commands, visit: (https://kubernetes.io/docs/reference/kubectl/cheatsheet/)

## Available Scripts in UI Directory

In the project directory, you can run:
Expand Down
12 changes: 12 additions & 0 deletions ui/kai-deployment-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: kai-ui-service
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: web
type: LoadBalancer
21 changes: 21 additions & 0 deletions ui/kai-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: kai-ui-deployment

spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: kai-ui
image: 595076097930.dkr.ecr.us-east-1.amazonaws.com/korat/kai-ui:latest
ports:
- containerPort: 80
protocol: TCP

0 comments on commit f32ab8f

Please sign in to comment.