Skip to content

Commit b776e1a

Browse files
committed
use NodePort to support GCP. GCP provides a new IP address for every ingress
1 parent 321a48f commit b776e1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

provider/cluster/kube/builder.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
akashv1 "github.com/ovrclk/akash/pkg/apis/akash.network/v1"
1111
"github.com/ovrclk/akash/types"
12-
"github.com/satori/go.uuid"
12+
uuid "github.com/satori/go.uuid"
1313
appsv1 "k8s.io/api/apps/v1"
1414
corev1 "k8s.io/api/core/v1"
1515
extv1 "k8s.io/api/extensions/v1beta1"
@@ -183,6 +183,9 @@ func (b *serviceBuilder) create() (*corev1.Service, error) {
183183
Labels: b.labels(),
184184
},
185185
Spec: corev1.ServiceSpec{
186+
// use NodePort to support GCP. GCP provides a new IP address for every ingress
187+
// and requires the service type to be either NodePort or LoadBalancer
188+
Type: corev1.ServiceTypeNodePort,
186189
Selector: b.labels(),
187190
Ports: b.ports(),
188191
},

0 commit comments

Comments
 (0)