> For the complete documentation index, see [llms.txt](https://liujinye.gitbook.io/openshift-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liujinye.gitbook.io/openshift-docs/walletconnect/walletconnectrelay-bu-shu.md).

# WalletConnect-Relay 部署

## 使用 quay.io 自动构建镜像

略

参考：

<https://docs.quay.io/guides/building.html>

<https://access.redhat.com/documentation/zh-cn/red\\_hat\\_quay/3.6/html-single/use\\_red\\_hat\\_quay/index>

## 编写helm chart

参考：

[快速编写通用helm chart](https://liujinye.gitbook.io/kubernetes-docs/cicd/kuai-su-bian-xie-tong-yong-helmchart)

<https://github.com/paradeum-team/relay/blob/master/ops/package/docker-compose.override.yml>

编写好的 helm chart 代码提交至

<https://github.com/paradeum-team/geth-helm-charts/tree/main/walletconnect-relay>

## 使用argocd部署

### 部署WalletConnect-Relay 使用的 redis

dev-walletconnect-relay-redis.yaml

```yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: dev-walletconnect-relay-redis
  namespace: cicd
spec:
  destination:
    name: k8s-test
    namespace: nft
  project: dev-nft
  source:
    chart: redis
    helm:
      parameters:
      - name: replica.replicaCount
        value: "0"
      - name: image.repository
        value: bitnami/redis
      - name: image.registry
        value: dockerproxy.com
      - name: auth.enabled
        value: "false"
      valueFiles:
      - values.yaml
    repoURL: https://charts.bitnami.com/bitnami
    targetRevision: 16.13.2
```

执行创建

```
kubectl apply -f dev-walletconnect-relay-redis.yaml
```

### 部署 WalletConnect-Relay

dev-walletconnect-relay.yaml

```yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: dev-walletconnect-relay
  namespace: cicd
spec:
  destination:
    name: k8s-test
    namespace: nft
  project: dev-nft
  source:
    helm:
      parameters:
      - name: ingress.enabled
        value: "true"
      - name: ingress.className
        value: nginx
      - name: ingress.hosts[0].host
        value: dev-walletconnect-relay.example.com
      - name: redisUrl
        value: redis://dev-walletconnect-relay-redis-headless.nft.svc:6379/0
      valueFiles:
      - values.yaml
      values: |2-

        imagePullSecrets:
          - name: registry-pld-cicd

        ingress:
          tls:
            - secretName: example-com-tls
              hosts:
                - dev-walletconnect-relay.example.com
    path: walletconnect-relay
    repoURL: https://github.com/paradeum-team/geth-helm-charts.git
    targetRevision: dev
  syncPolicy:
    automated: {}
```

执行部署

```
kubectl apply -f dev-walletconnect-relay.yaml
```

## 参考

<https://github.com/paradeum-team/relay>

<https://liujinye.gitbook.io/kubernetes-docs/cicd/argocd-tian-jia-fu-wu-liu-cheng>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://liujinye.gitbook.io/openshift-docs/walletconnect/walletconnectrelay-bu-shu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
