Skip to content

Commit 416658e

Browse files
committed
changes
1 parent 2b98799 commit 416658e

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

cluster.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: k3d.io/v1alpha2
2+
kind: Simple
3+
name: my-cluster
4+
servers: 1
5+
agents: 1
6+
image: rancher/k3s:v1.20.4-k3s1
7+
volumes:
8+
- volume: /Users/basil/projects:/mnt/projects
9+
ports:
10+
- port: 8080:80
11+
nodeFilters:
12+
- loadbalancer

coit-frontend/src/App.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class App extends Component {
2020
};
2121

2222
analyzeSentence() {
23-
fetch('http://localhost:8080/sentiment', {
23+
fetch('http://127.0.0.1:4504/sentiment', {
2424
method: 'POST',
2525
headers: {
2626
'Content-Type': 'application/json'
@@ -46,7 +46,7 @@ class App extends Component {
4646
<MuiThemeProvider>
4747
<div className="centerize">
4848
<Paper zDepth={1} className="content">
49-
<h2>Input Your Message</h2>
49+
<h2>Enter a Message</h2>
5050
<TextField ref={ref => this.textField = ref} onKeyUp={this.onEnterPress.bind(this)}
5151
hintText="Type your sentence."/>
5252
<RaisedButton label="Send" style={style} onClick={this.analyzeSentence.bind(this)}/>

skaffold.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ kind: Config
33
metadata:
44
name: simple-microservice
55
build:
6+
tagPolicy:
7+
dateTime: {}
8+
local:
9+
push: false
610
artifacts:
711
- image: coit-backend1
812
context: coit-backend1
@@ -25,3 +29,14 @@ deploy:
2529
- resource-manifests/service-coit-backend1-lb.yaml
2630
- resource-manifests/service-coit-backend2.yaml
2731
- resource-manifests/service-coit-frontend-lb.yaml
32+
profiles:
33+
- name: dev
34+
activation:
35+
- env: DEV=1
36+
- kubeContext: arn:aws:eks:ap-south-1:210607809234:cluster/aws-mumbai-all
37+
env: DEV=10
38+
build:
39+
local:
40+
push: true
41+
deploy:
42+
kubeContext: arn:aws:eks:ap-south-1:210607809234:cluster/aws-mumbai-all

0 commit comments

Comments
 (0)