Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SO1S-487 istio-sidecar-생성-방식-변경 #47

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ public boolean deployInferenceServer(
labels.put("app", "inference");
labels.put("name", deployName);

Map<String, String> annotations = new HashMap<>();
annotations.put("sidecar.istio.io/inject", "true");

String host = deployment.getEndPoint().toLowerCase();

Deployment inferenceDeployment = new DeploymentBuilder()
Expand All @@ -229,6 +232,7 @@ public boolean deployInferenceServer(
.withNewMetadata()
.withName(deployName)
.addToLabels(labels)
.addToAnnotations(annotations)
.endMetadata()
.withNewSpec()
.addNewContainer()
Expand Down Expand Up @@ -256,7 +260,6 @@ public boolean deployInferenceServer(
.endTemplate()
.endSpec()
.build();

// See https://github.com/So1S/istio/blob/main/gateway.yaml

io.fabric8.kubernetes.api.model.Service inferenceService = new ServiceBuilder()
Expand Down