Skip to content

Commit

Permalink
Arrange the doc for DNSMembershipProvider.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfclere committed Jun 26, 2023
1 parent d6c962a commit 32d0d53
Showing 1 changed file with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
* }
* </pre>
*
* minimal example for the Service my-tomcat-app-membership, note the <strong>selector</strong><br>
*
* {@code dns-membership-service.yml }
*
* <pre>
Expand All @@ -73,14 +75,32 @@
* name: my-tomcat-app-membership
* spec:
* clusterIP: None
* ports:
* - name: membership
* port: 8888
* selector:
* app: my-tomcat-app
* }
* </pre>
*
* First Tomcat pod minimal example, note the <strong>labels</strong> that must correspond to the <strong>selector</strong> in the service.<br>
*
* {@code tomcat1.yml }
*
* <pre>
* {@code
* apiVersion: v1
* kind: Pod
* metadata:
* name: tomcat1
* labels:
* app: my-tomcat-app
* spec:
* containers:
* - name: tomcat
* image: tomcat
* ports:
* - containerPort: 8080
* }
* </pre>
*
* Environment variable configuration<br>
*
* {@code DNS_MEMBERSHIP_SERVICE_NAME=my-tomcat-app-membership }
Expand Down

0 comments on commit 32d0d53

Please sign in to comment.