Skip to content

Commit 590df67

Browse files
ws fixes and inventory-helidon inventory methods added (#327)
* dotnet work * dotnet work * observability, dotnet, go, etc. work - move kafka etc. build to nonjava * observability, dotnet, go, etc. work - move kafka etc. build to nonjava * observability, dotnet, go, etc. work - move kafka etc. build to nonjava * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * enable teq * observability * enable teq * enable teq * enable teq * enable teq * enable teq * observability work * observability work * enable teq * enable teq * enable teq * observ * enable teq * observability dash * observability * osbservability * enable teq * enable teq * enable teq * obs * obs * enable teq * obs * enable teq * observ * obs * converged wording change * fix k6 command * correct workshop link * update workshop link * modifiy python impl to conn.autocommit = False * enable teq * various including security fix in inventory-nodejs * various including security fix in inventory-nodejs * various including security fix in inventory-nodejs * enable teq * inventory-micronaut * inventory-micronaut * inventory-quarkus * inventory-micronaut-native-image * upgrade helidon and db versions * mn and quarkus build wrappers * mn native-image build and deploy fixes * mn native-image build and deploy fixes * mn native-image use JsonObject instead of Jackson * dotnet vault work, etc. * vault work, various languages * Go OCI Vault/Secrets client * displaysetuplogs util script * displaysetuplogs util script * displaysetuplogs util script * displaysetuplogs util script * createsecretfromwallet * createsecretfromwallet * createsecretfromwallet * set order and inventory helidon versions back to 2.4.0 * travelagency readme * createsecretfromwallet * temp eventmesh and osaga java api * travelagencysaga * observability workshop and various fixes * travelagency saga ws work * saga ws work * saga ws * saga ws * saga ws * saga ws * saga ws * osaga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * obs ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * saga ws * obs ws * saga ws * obs ws
1 parent a301d22 commit 590df67

File tree

8 files changed

+103
-46
lines changed

8 files changed

+103
-46
lines changed

grabdish/inventory-helidon/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
4-
5-
##
63
## Copyright (c) 2021 Oracle and/or its affiliates.
74
## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
8-
9-
105
-->
116
<project xmlns="http://maven.apache.org/POM/4.0.0"
127
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

grabdish/inventory-helidon/src/main/java/io/helidon/data/examples/InventoryResource.java

Lines changed: 70 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import java.io.IOException;
1010
import java.sql.Connection;
11+
import java.sql.ResultSet;
1112
import java.sql.SQLException;
1213

1314
import javax.enterprise.context.ApplicationScoped;
@@ -57,8 +58,7 @@ public class InventoryResource {
5758
}
5859

5960
public InventoryResource() {
60-
client = ClientBuilder.newBuilder()
61-
.build();
61+
client = ClientBuilder.newBuilder().build();
6262
}
6363

6464
@Inject
@@ -82,7 +82,7 @@ public void init(@Observes @Initialized(ApplicationScoped.class) Object init) th
8282
try (Connection connection = atpInventoryPDB.getConnection()) { //fail if connection is not successful rather than go into listening loop
8383
System.out.println("InventoryResource.init connection:" + connection);
8484
}
85-
listenForMessages();
85+
new Thread(new InventoryServiceOrderEventConsumer(this)).start();
8686
}
8787

8888
Tracer getTracer() {
@@ -93,17 +93,78 @@ MetricRegistry getMetricRegistry() {
9393
return metricRegistry;
9494
}
9595

96-
@Path("/listenForMessages")
96+
97+
// begin supplier service
98+
99+
@Path("/addInventory")
97100
@GET
98101
@Produces(MediaType.TEXT_PLAIN)
99-
public Response listenForMessages() {
100-
new Thread(new InventoryServiceOrderEventConsumer(this)).start();
101-
final Response returnValue = Response.ok()
102-
.entity("now listening for messages...")
102+
public Response addInventory(@QueryParam("itemid") String itemid) {
103+
String response;
104+
System.out.println("SupplierService.addInventory itemid:" + itemid);
105+
try {
106+
Connection conn = atpInventoryPDB.getConnection();
107+
conn.createStatement().execute(
108+
"UPDATE inventory SET inventorycount = inventorycount + 1 where inventoryid = '" + itemid + "'");
109+
response = getInventoryCount(itemid, conn);
110+
} catch (SQLException ex) {
111+
response = ex.getMessage();
112+
}
113+
return Response.ok()
114+
.entity(response)
115+
.build();
116+
}
117+
118+
@Path("/removeInventory")
119+
@GET
120+
@Produces(MediaType.TEXT_PLAIN)
121+
public Response removeInventory(@QueryParam("itemid") String itemid) {
122+
String response;
123+
System.out.println("SupplierService.removeInventory itemid:" + itemid);
124+
try (Connection conn = atpInventoryPDB.getConnection()) {
125+
conn.createStatement().execute(
126+
"UPDATE inventory SET inventorycount = inventorycount - 1 where inventoryid = '" + itemid + "'");
127+
response = getInventoryCount(itemid, conn);
128+
} catch (SQLException ex) {
129+
response = ex.getMessage();
130+
}
131+
return Response.ok()
132+
.entity(response)
103133
.build();
104-
return returnValue;
105134
}
106135

136+
@Path("/getInventoryCount")
137+
@GET
138+
@Produces(MediaType.TEXT_PLAIN)
139+
public Response getInventoryCount(@QueryParam("itemid") String itemid) {
140+
String response;
141+
System.out.println("SupplierService.getInventoryCount itemid:" + itemid);
142+
try (Connection conn = atpInventoryPDB.getConnection()) {
143+
response = getInventoryCount(itemid, conn);
144+
} catch (SQLException ex) {
145+
response = ex.getMessage();
146+
}
147+
return Response.ok()
148+
.entity(response)
149+
.build();
150+
}
151+
152+
private String getInventoryCount(String itemid, Connection conn) throws SQLException {
153+
ResultSet resultSet = conn.createStatement().executeQuery(
154+
"select inventorycount from inventory where inventoryid = '" + itemid + "'");
155+
int inventorycount;
156+
if (resultSet.next()) {
157+
inventorycount = resultSet.getInt("inventorycount");
158+
System.out.println("SupplierService.getInventoryCount inventorycount:" + inventorycount);
159+
} else inventorycount = 0;
160+
conn.close();
161+
return "inventorycount for " + itemid + " is now " + inventorycount;
162+
}
163+
164+
//end supplier service
165+
166+
167+
107168
@Path("/crashAfterOrderMessageReceived")
108169
@GET
109170
@Produces(MediaType.TEXT_PLAIN)

grabdish/observability/db-log-exporter/db-log-exporter-inventorypdb-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
optional: true
3333
# The following QUERY_SQL can be any query but must contain EXECUTION_CONTEXT_ID
3434
- name: QUERY_SQL
35-
value: "select ORIGINATING_TIMESTAMP, MODULE_ID, EXECUTION_CONTEXT_ID, MESSAGE_TEXT from V$diag_alert_ext"
35+
value: "select ORIGINATING_TIMESTAMP, MODULE_ID, EXECUTION_CONTEXT_ID, MESSAGE_TEXT from Vdiag_alert_ext"
3636
- name: OCI_REGION
3737
value: "${OCI_REGION-}"
3838
- name: VAULT_SECRET_OCID

grabdish/observability/db-log-exporter/db-log-exporter-orderpdb-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
optional: true
3333
# The following QUERY_SQL can be any query but must contain EXECUTION_CONTEXT_ID
3434
- name: QUERY_SQL
35-
value: "select ORIGINATING_TIMESTAMP, MODULE_ID, EXECUTION_CONTEXT_ID, MESSAGE_TEXT from V$diag_alert_ext"
35+
value: "select ORIGINATING_TIMESTAMP, MODULE_ID, EXECUTION_CONTEXT_ID, MESSAGE_TEXT from Vdiag_alert_ext"
3636
- name: OCI_REGION
3737
value: "${OCI_REGION-}"
3838
- name: VAULT_SECRET_OCID

grabdish/observability/db-log-exporter/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55

66
# See docs/Deploy.md for details
7-
k8s-deploy 'db-log-exporter-inventorypdb-deployment.yaml db-log-inventorypdb-exporter-service.yaml db-log-exporter-orderypdb-deployment.yaml db-log-orderpdb-exporter-service.yaml '
7+
k8s-deploy 'db-log-exporter-inventorypdb-deployment.yaml db-log-inventorypdb-exporter-service.yaml db-log-exporter-orderpdb-deployment.yaml db-log-orderpdb-exporter-service.yaml '

grabdish/observability/db-metrics-exporter/deploy-inventory-metrics-exporter.sh

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ if [ -z "$DOCKER_REGISTRY" ]; then
1414
exit 1
1515
fi
1616

17-
if [ -z "$INVENTORY_PDB_NAME" ]; then
18-
echo "INVENTORY_PDB_NAME not set. Will get it with state_get"
19-
export INVENTORY_PDB_NAME=$(state_get INVENTORY_DB_NAME)
17+
if [ -z "$INVENTORY_DB_NAME" ]; then
18+
echo "INVENTORY_DB_NAME not set. Will get it with state_get"
19+
export INVENTORY_DB_NAME=$(state_get INVENTORY_DB_NAME)
2020
fi
2121

22-
if [ -z "$INVENTORY_PDB_NAME" ]; then
23-
echo "Error: INVENTORY_PDB_NAME env variable needs to be set!"
22+
if [ -z "$INVENTORY_DB_NAME" ]; then
23+
echo "Error: INVENTORY_DB_NAME env variable needs to be set!"
2424
exit 1
2525
fi
2626

@@ -34,20 +34,18 @@ echo CURRENTTIME is $CURRENTTIME ...this will be appended to generated deployme
3434

3535
cp db-metrics-exporter-deployment.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
3636

37-
sed -e "s|%DOCKER_REGISTRY%|${DOCKER_REGISTRY}|g" db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
38-
mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
37+
#sed -e "s|%DOCKER_REGISTRY%|${DOCKER_REGISTRY}|g" db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
38+
#mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
3939
sed -e "s|%EXPORTER_NAME%|inventorypdb|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
4040
mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
41-
sed -e "s|%PDB_NAME%|${INVENTORY_PDB_NAME}|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
41+
sed -e "s|%PDB_NAME%|${INVENTORY_DB_NAME}|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
4242
mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
4343
sed -e "s|%USER%|INVENTORYUSER|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
4444
mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
45-
sed -e "s|${OCI_REGION-}|${OCI_REGION}|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
46-
mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
47-
sed -e "s|${VAULT_SECRET_OCID-}|${VAULT_SECRET_OCID}|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
48-
mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
49-
sed -e "s|%DATA_SOURCE_NAME_URL%|inventoryurl|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
50-
mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
45+
#sed -e "s|${OCI_REGION-}|${OCI_REGION}|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
46+
#mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
47+
#sed -e "s|${VAULT_SECRET_OCID-}|${VAULT_SECRET_OCID}|g" db-metrics-exporter-inventorypdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
48+
#mv -- /tmp/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml
5149

5250
if [ -z "$1" ]; then
5351
kubectl apply -f $SCRIPT_DIR/db-metrics-exporter-inventorypdb-deployment-$CURRENTTIME.yaml -n msdataworkshop

grabdish/observability/db-metrics-exporter/deploy-order-metrics-exporter.sh

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ if [ -z "$DOCKER_REGISTRY" ]; then
1414
exit 1
1515
fi
1616

17-
if [ -z "$ORDER_PDB_NAME" ]; then
18-
echo "ORDER_PDB_NAME not set. Will get it with state_get"
19-
export ORDER_PDB_NAME=$(state_get ORDER_DB_NAME)
17+
if [ -z "$ORDER_DB_NAME" ]; then
18+
echo "ORDER_DB_NAME not set. Will get it with state_get"
19+
export ORDER_DB_NAME=$(state_get ORDER_DB_NAME)
2020
fi
2121

22-
if [ -z "$ORDER_PDB_NAME" ]; then
23-
echo "Error: ORDER_PDB_NAME env variable needs to be set!"
22+
if [ -z "$ORDER_DB_NAME" ]; then
23+
echo "Error: ORDER_DB_NAME env variable needs to be set!"
2424
exit 1
2525
fi
2626

@@ -34,20 +34,18 @@ echo CURRENTTIME is $CURRENTTIME ...this will be appended to generated deployme
3434

3535
cp db-metrics-exporter-deployment.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
3636

37-
sed -e "s|%DOCKER_REGISTRY%|${DOCKER_REGISTRY}|g" db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
38-
mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
37+
#sed -e "s|%DOCKER_REGISTRY%|${DOCKER_REGISTRY}|g" db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
38+
#mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
3939
sed -e "s|%EXPORTER_NAME%|orderpdb|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
4040
mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
41-
sed -e "s|%PDB_NAME%|${ORDER_PDB_NAME}|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
41+
sed -e "s|%PDB_NAME%|${ORDER_DB_NAME}|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
4242
mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
4343
sed -e "s|%USER%|orderUSER|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
4444
mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
45-
sed -e "s|${OCI_REGION-}|${OCI_REGION}|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
46-
mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
47-
sed -e "s|${VAULT_SECRET_OCID-}|${VAULT_SECRET_OCID}|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
48-
mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
49-
sed -e "s|%DATA_SOURCE_NAME_URL%|orderurl|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
50-
mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
45+
#sed -e "s|${OCI_REGION-}|${OCI_REGION}|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
46+
#mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
47+
#sed -e "s|${VAULT_SECRET_OCID-}|${VAULT_SECRET_OCID}|g" db-metrics-exporter-orderpdb-deployment-${CURRENTTIME}.yaml > /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
48+
#mv -- /tmp/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml
5149

5250
if [ -z "$1" ]; then
5351
kubectl apply -f $SCRIPT_DIR/db-metrics-exporter-orderpdb-deployment-$CURRENTTIME.yaml -n msdataworkshop

grabdish/observability/install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ echo
2222
echo Installing Grafana...
2323
kubectl apply -f install/grafana.yaml -n msdataworkshop
2424
#todo instead of LB... kubectl apply -f install/grafana-ingress.yaml -n ingress-nginx
25-
kubectl create secret tls ssl-certificate-secret --key $GRABDISH_HOME/tls/tls.key --cert $GRABDISH_HOME/tls/tls.crt -n msdataworkshop
25+
#mkdir tls
26+
#chmod 700 tls
27+
#openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls/tls.key -out tls/tls.crt -subj "/CN=grabdish/O=grabdish"
28+
#kubectl create secret tls ssl-certificate-secret --key tls/tls.key --cert $GRABDISH_HOME/tls/tls.crt -n msdataworkshop
29+
30+
echo Creating Grafana Service...
2631
kubectl apply -f install/grafana-service.yaml -n msdataworkshop
2732
echo
2833

0 commit comments

Comments
 (0)