Skip to content

Commit aa59a69

Browse files
stevsmitSteven Smith
andauthored
Adds ipv6 local deployment to poc (quay#1187)
Co-authored-by: Steven Smith <[email protected]>
1 parent 4042ab9 commit aa59a69

File tree

5 files changed

+66
-1
lines changed

5 files changed

+66
-1
lines changed

deploy_quay/master.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ include::modules/ssl-testing-ui.adoc[leveloffset=+3]
5555
include::modules/ssl-trust-ca-podman.adoc[leveloffset=+2]
5656
include::modules/ssl-trust-ca-system.adoc[leveloffset=+2]
5757

58+
//local ipv6 deployment
59+
include::modules/proc_deploy_quay_local_ipv6.adoc[leveloffset=+1]
60+
include::modules/poc-creating-dual-stack-cn.adoc[leveloffset=+2]
61+
include::modules/deploy-local-quay-ipv6.adoc[leveloffset=+2]
62+
5863
include::modules/proc_deploy_quay_poc_next.adoc[leveloffset=1]
5964

6065
////
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:_content-type: PROCEDURE
2+
[id="deploy-local-quay-ipv6"]
3+
= Deploying a local instance of {productname} in IPv6
4+
5+
After you have created a new dual-stack container network, you can deploy a local instance of {productname}.
6+
7+
.Prerequisites
8+
9+
* You have configured Redis, your PostgreSQL database, local image storage, and creating a `config.yaml` file with the desired settings.
10+
11+
.Procedure
12+
13+
. In your {productname} `config.yaml` file, set the `FEATURE_LISTEN_IP_VERSION` field to `IPv6`. For example:
14+
+
15+
[source,yaml]
16+
----
17+
# ...
18+
FEATURE_LISTEN_IP_VERSION: dual-stack
19+
# ...
20+
----
21+
22+
. Enter the following command to start the `Quay` registry container, specifying the appropriate volumes for configuration data and local storage for image data. Note that if you are using dual-stack, you must specify explicit IPv6 port mapping when starting the container.
23+
+
24+
[subs="verbatim,attributes"]
25+
----
26+
$ sudo podman run -d --rm -p "[::]:80:8080" -p "[::]:443:8443" \
27+
--name=quay \
28+
-v $QUAY/config:/conf/stack:Z \
29+
-v $QUAY/storage:/datastorage:Z \
30+
{productrepo}/{quayimage}:{productminv}
31+
----
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:_content-type: PROCEDURE
2+
[id="poc-creating-dual-stack-cn"]
3+
= Creating a dual-stack container network
4+
5+
Use the following procedure to create a new container network that is dual-stack.
6+
7+
.Procedure
8+
9+
* Unless there is a requirement that the _default_ container network use both IPv4 and IPv6, it is suggested that a _new_ container network is created that is dual-stack. As a root user, create a new container network that is dual-stack by running the following command:
10+
+
11+
[source,terminal]
12+
----
13+
# podman network create ip-dual-stack --ipv6
14+
----
15+
+
16+
With this command, new containers use this network are a natively dual-stack.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:_content-type: CONCEPT
2+
[id="poc-deploy-quay-local-ipv6"]
3+
= Configuring the Podman CNI to use IPv6
4+
5+
In some cases, you might want to run a local instance of {productname} to use IPv6. This setup is common for development or testing purposes.
6+
7+
By default, the Podman network for a root user does not use IPv6, and instead defaults to use IPv4. You can configure the Podman Container Network Interface (CNI) to use both IPv4 and IPv6, which allows for a local instance of {productname} using IPv6.
8+
9+
[discrete]
10+
[id="additional-resources"]
11+
== Additional resources
12+
13+
* link:https://access.redhat.com/solutions/6196301[How to configure the default podman container network for the root user to use both IPv4 and IPv6].

modules/proc_deploy_quay_poc_run.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Use the following procedure to deploy the `Quay` registry container.
119119

120120
.Procedure
121121

122-
. Enter the following command to start the `Quay` registry container, specifying the appropriate volumes for configuration data and local storage for image data:
122+
* Enter the following command to start the `Quay` registry container, specifying the appropriate volumes for configuration data and local storage for image data:
123123
+
124124
[subs="verbatim,attributes"]
125125
----

0 commit comments

Comments
 (0)