Skip to content

Commit

Permalink
discoveryserver: fixes deployment yaml and adds notes about use of Eu…
Browse files Browse the repository at this point in the history
…reka's port (#1580)
  • Loading branch information
codefromthecrypt authored Feb 20, 2024
1 parent 523971a commit 793d2cc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ the `DiscoveryClient` implementation provided by that starter.

## Permissions
The Spring Cloud Discovery server uses
the Kubernetes API server to get data about Service and Endpoint resources so it needs list, watch, and
get permissions to use those endpoints. See the below sample Kubernetes deployment YAML for an
example of how to configure the Service Account on Kubernetes.
the Kubernetes API server to get data about Pod, Service and Endpoint resources, so it needs list,
watch, and get permissions to use those endpoints. See the below sample Kubernetes deployment YAML
for an example of how to configure the Service Account on Kubernetes.


## Endpoints
Expand Down Expand Up @@ -171,7 +171,7 @@ items:
name: namespace-reader
rules:
- apiGroups: ["", "extensions", "apps"]
resources: ["services", "endpoints"]
resources: ["pods", "services", "endpoints"]
verbs: ["get", "list", "watch"]
- apiVersion: apps/v1
kind: Deployment
Expand All @@ -186,10 +186,10 @@ items:
labels:
app: spring-cloud-kubernetes-discoveryserver
spec:
serviceAccount: spring-cloud-kubernetes-discoveryserver
serviceAccountName: spring-cloud-kubernetes-discoveryserver
containers:
- name: spring-cloud-kubernetes-discoveryserver
image: springcloud/spring-cloud-kubernetes-discoveryserver:3.0.0-SNAPSHOT
image: springcloud/spring-cloud-kubernetes-discoveryserver:3.1.0
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet:
Expand Down

0 comments on commit 793d2cc

Please sign in to comment.