Skip to content

Commit 67b0676

Browse files
authored
Minor polyglot example update (#727)
1 parent 121eb1a commit 67b0676

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

examples/910_polyglot_demo/README.adoc

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ namespace/coherence-demo created
9797
[#pre-3]
9898
==== Install the Coherence Operator
9999
100-
TIP: The Coherence Operator is installed installed into a namespace called `coherence`. To change this see the documentation below.
100+
TIP: The Coherence Operator is installed into a namespace called `coherence`. To change this see the documentation below.
101101
102102
[source,bash]
103103
----
@@ -271,6 +271,29 @@ docker push ghcr.io/username/repo/polyglot-client-go:1.0.0
271271
* link:yaml/js-client.yaml[js-client.yaml]
272272
* link:yaml/go-client.yaml[go-client.yaml]
273273
274+
3. Create a secret if your repository is not public:
275+
+
276+
If the repository you are pushing to is not public, you will need to create a pull secret, and add this to the deployment yaml for each client.
277+
+
278+
[source,bash]
279+
----
280+
kubectl create secret docker-registry my-pull-secret \
281+
--docker-server=ghcr.io \
282+
--docker-username="<username>" --docker-password="<password>" \
283+
--docker-email="<email>" -n coherence-demo
284+
----
285+
+
286+
In each of the client deployment files, above add `imagePullSecrets` after the image. For example in the go-client:
287+
+
288+
[source,yaml]
289+
----
290+
- name: go-client
291+
image: ghcr.io/username/repo/polyglot-client-go:1.0.0
292+
imagePullPolicy: IfNotPresent
293+
imagePullSecrets:
294+
- name: my-pull-secret
295+
---
296+
274297
[#dep-4]
275298
==== 4. Deploy the Coherence Cluster
276299

0 commit comments

Comments
 (0)