-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kubernetes api demo to use kubernetes api (#294)
* Update kubernetes api demo to use kubernetes api
- Loading branch information
Showing
17 changed files
with
170 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 16 additions & 33 deletions
49
bootstrap-demo/kubernetes-api/src/main/resources/application.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,21 @@ | ||
akka { | ||
#discovery-config | ||
akka.discovery { | ||
# pick the discovery method you'd like to use: | ||
method = kubernetes-api | ||
|
||
actor { | ||
provider = "cluster" | ||
kubernetes-api { | ||
pod-label-selector = "actorSystemName=%s" | ||
} | ||
|
||
discovery { | ||
# pick the discovery method you'd like to use: | ||
method = kubernetes-api | ||
|
||
kubernetes-api { | ||
pod-label-selector = "actorSystemName=appka" | ||
} | ||
} | ||
|
||
management { | ||
http { | ||
port = 8558 | ||
} | ||
|
||
cluster.bootstrap { | ||
|
||
contact-point-discovery { | ||
service-name = "appka-service" | ||
service-namespace = "default.svc.cluster.local" | ||
stable-margin = 5 seconds | ||
} | ||
|
||
contact-point { | ||
# currently this port HAS TO be the same as the `akka.management.http.port` | ||
# it would not have to be once we implement the SRV record watching, since then we could potentially | ||
# get the ports from the DNS records. | ||
fallback-port = 8558 | ||
} | ||
} | ||
#discovery-config | ||
|
||
#management-config | ||
akka.management { | ||
cluster.bootstrap { | ||
contact-point-discovery { | ||
# For the kubernetes API this value is substributed into the %s in pod-label-selector | ||
service-name = "appka" | ||
} | ||
} | ||
|
||
} | ||
#management-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.