Skip to content

Commit

Permalink
adding a bit of https port for deployment/service of the IntegrationSink
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew committed Dec 13, 2024
1 parent 8f0b74d commit a1209c6
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions pkg/reconciler/integration/sink/resources/container_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ func MakeDeploymentSpec(sink *v1alpha1.IntegrationSink) *appsv1.Deployment {
Name: "sink",
Image: selectImage(sink),
ImagePullPolicy: corev1.PullIfNotPresent,
Ports: []corev1.ContainerPort{{
ContainerPort: 8080,
Protocol: corev1.ProtocolTCP,
Name: "http",
}},
Ports: []corev1.ContainerPort{
{
ContainerPort: 8080,
Protocol: corev1.ProtocolTCP,
Name: "http",
},
{
ContainerPort: 8443,
Protocol: corev1.ProtocolTCP,
Name: "https",
}},
Env: makeEnv(sink),
},
},
Expand Down Expand Up @@ -102,6 +108,12 @@ func MakeService(sink *v1alpha1.IntegrationSink) *corev1.Service {
Port: 80,
TargetPort: intstr.IntOrString{IntVal: 8080},
},
{
Name: "https",
Protocol: corev1.ProtocolTCP,
Port: 443,
TargetPort: intstr.IntOrString{IntVal: 443},
},
},
},
}
Expand Down

0 comments on commit a1209c6

Please sign in to comment.