k8s一键部署uniswap

1、拉取uniswap源码
github地址
2、编写Dockerfile并打镜像

# Set the base image
FROM node:18.10.0# WORKDIR /usr/src/app/
WORKDIR /home/gateway# Copy files
COPY ./ /home/gateway/# Dockerfile author / maintainer
LABEL maintainer="Michael Feng <mike@hummingbot.org>"# Build arguments
LABEL branch=${BRANCH}
LABEL commit=${COMMIT}
LABEL date=${BUILD_DATE}# Set ENV variables
ENV COMMIT_BRANCH=${BRANCH}
ENV COMMIT_SHA=${COMMIT}
ENV BUILD_DATE=${DATE}
ENV INSTALLATION_TYPE=docker# Create mount points
RUN mkdir -p /home/gateway/conf /home/gateway/logs /home/gateway/db /home/gateway/certs /home/gateway/conf/listsCOPY src/templates/lists/*.json /home/gateway/conf/lists/
COPY src/templates/*.yml /home/gateway/conf/
#COPY certs/*.pem /home/gateway/certs/# Install dependencies and compile
RUN yarn install --frozen-lockfile
RUN yarn build# Expose port 15888 - note that docs port is 8080
EXPOSE 15888# Set the default command to run when starting the container
CMD yarn run start

3、创建pem证书文件(因为创建证书需要第三方工具,这边就给出一份创建好了的证书)
k8s创建configmap yaml文件如下
uniswap-gateway-key.yml

---
apiVersion: v1
data:ca_cert.pem: >-LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM4VENDQWRtZ0F3SUJBZ0lVUk5jSm1FR3FGK095bGVaZ003TnNUcWhVUEprd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0tERVNNQkFHQTFVRUNnd0piRzlqWVd4b2IzTjBNUkl3RUFZRFZRUUREQWxzYjJOaGJHaHZjM1F3SGhjTgpNak13T1RBeE1USTBNekE1V2hjTk1qUXdPRE14TVRJME16QTVXakFvTVJJd0VBWURWUVFLREFsc2IyTmhiR2h2CmMzUXhFakFRQmdOVkJBTU1DV3h2WTJGc2FHOXpkRENDQVNJd0RRWUpLb1pJaHZjTkFRRUJCUUFEZ2dFUEFEQ0MKQVFvQ2dnRUJBS1g5T2poNkV0NkdwZmp6b2VjNEZKS2IwRD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KUXZCSUJpTWhGOFRxUnBIS01qTmxuMjVQdy9nODhnS1RHQjZ1czAxbzB6MUR4dkpvTjN6NTdXWlRtaEJ6aGhVMwpFcjQ2MThyRWU3V2VRNVdLZ1pmZTREMTFqTW8xZFJvSmxhODcxWHdkYmI2eS9pMWpQbzVjbXdRbDN3Vm5aT0JjCi9qWWN0QnE0eHg5cFBDWGhLV210eTgvdDRsQ2RIT0gwTUNURlJVYkpJaFl5d3UzbHZFQjFKcHBnM3pVVWlESTMKQ3Z4eHR1YWJ6QXZtaHNaZ1VFUGFRcHNKeHhhMmxUN3NnaGZUVDNjR095TmtqV2JKTFZYWXBLV0MrdDBMRTJDRAozYVZXVXFYUzB1MElaeUNrYVpIMktuWHROcW1KZzhqUFYvRkE4S3I2K3grcS9MRUpWZDM4eXg5VytKNXRzQlhSCnFCckc5YWFZaTgyRUtqNTY2andIVHpBTE01cDh1QzRMbjdPUFRmQmNlUDc1alM4dk9WcDdhek1QY25BVlNPcTIKUzcvcDlZVUg0em5LekkvRnllZFk3TXU3WWxvUEtXZXRDUzVUcFpMVXFaTlkzRFhOS1k4YXpIcm9XRTBoWnpzdQpjN1BIanVRMk5qdUREdDdacS9FeFVBdnN5MXQvOWFLK0VKcFFFcVhFdGZtQ0Q1UU02TFU0TEZ4d3Y3cE5QMDg1CkY5c3NqVlpraldmaGZ3OCs1dXNaSXF4Q2k2clBVcHd2WnVTcU8rd29PNDN5UzM0L043TDdUNHVDdHVzRTNFaVMKTjErTS9lQlhQSUpzU1R1RlpFdGZleXlOaEduVk15WlIvdTNyTmVud2hJTEcrUkxOakNQQ2JiSVVzaG8xejBQVgotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQ==
immutable: false
kind: Secret
metadata:name: uniswap-gateway-keynamespace: bikingresourceVersion: '102621410'
type: Opaque

4、编写创建uniswap.yaml文件

---
apiVersion: apps/v1
kind: Deployment
metadata:annotations:k8s.kuboard.cn/displayName: uniswap-nodelabels:k8s.kuboard.cn/layer: gatewayk8s.kuboard.cn/name: uniswap-nodename: gateway-nodenamespace: uniswap
spec:progressDeadlineSeconds: 600replicas: 1revisionHistoryLimit: 10selector:matchLabels:k8s.kuboard.cn/name: uniswap-nodestrategy:rollingUpdate:maxSurge: 25%maxUnavailable: 25%type: RollingUpdatetemplate:metadata:labels:k8s.kuboard.cn/name: uniswap-nodespec:containers:- command:- yarn- start- '--passphrase=Welcome123'env:- name: TZvalue: Asia/Shanghai- name: NACOSvalue: X.X.X.Ximage: 'registry-intl.cn-hongkong.aliyuncs.com/abc/uniswap-node:v1.0'imagePullPolicy: Alwaysname: gateway-nodeports:- containerPort: 15888name: msag7protocol: TCP- containerPort: 8080name: dfdgprotocol: TCPresources: {}terminationMessagePath: /dev/termination-logterminationMessagePolicy: FilevolumeMounts:- mountPath: /home/gateway/logsname: volume-miafxsubPath: gateway-node- mountPath: /home/gateway/certsname: volume-xw5yjworkingDir: /home/gatewaydnsPolicy: ClusterFirstimagePullSecrets:- name: harbor-secret- name: acr-secretrestartPolicy: AlwaysschedulerName: default-schedulersecurityContext: {}terminationGracePeriodSeconds: 30volumes:- name: volume-miafxpersistentVolumeClaim:claimName: uniswap-logs- name: volume-xw5yjsecret:defaultMode: 420secretName: uniswap-gateway-key
---
apiVersion: v1
kind: Service
metadata:annotations: {}labels:k8s.kuboard.cn/layer: gatewayk8s.kuboard.cn/name: uniswap-nodename: uniswap-nodenamespace: bikingresourceVersion: '90935018'
spec:ports:- name: kjmfcaport: 15888protocol: TCPtargetPort: 15888- name: zby2psport: 8080protocol: TCPtargetPort: 8080selector:k8s.kuboard.cn/name: uniswap-nodesessionAffinity: Nonetype: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:annotations:nginx.ingress.kubernetes.io/cors-allow-headers: >-DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Typenginx.ingress.kubernetes.io/cors-allow-methods: 'GET, POST, PUT, DELETE, OPTIONS'nginx.ingress.kubernetes.io/cors-allow-origin: '*'nginx.ingress.kubernetes.io/cors-expose-headers: 'Content-Length,Content-Type'nginx.ingress.kubernetes.io/enable-cors: 'true'nginx.ingress.kubernetes.io/force-ssl-redirect: 'true'nginx.ingress.kubernetes.io/from-to-www-redirect: 'false'labels:k8s.kuboard.cn/layer: gatewayk8s.kuboard.cn/name: uniswap-nodename: gateway-nodenamespace: bikingresourceVersion: '90938206'
spec:ingressClassName: nginxrules:- host: uniswap-node.abc.comhttp:paths:- backend:service:name: uniswap-nodeport:number: 15888path: /pathType: Prefixtls:- hosts:- uniswap-node.abc.comsecretName: abc.com-ssl

5、启动好了uniswap时,我们在登录容器内部后通过curl进行测试
在这里插入图片描述

curl -s -X GET -k --key certs/server_key.pem --cert certs/server_cert.pem https://localhost:15888/ 
Enter PEM pass phrase: (Welcome123)
{"status":"ok"}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/215361.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Java最全面试题专题---2、Java集合容器(2)

Map接口 说一下 HashMap 的实现原理&#xff1f; HashMap概述&#xff1a; HashMap是基于哈希表的Map接口的非同步实现。此实现提供所有可选的映射操作&#xff0c;并允许使用null值和null键。此类不保证映射的顺序&#xff0c;特别是它不保证该顺序恒久不变。 HashMap的数据…

C语言-枚举

常量符号化 用符号而不是具体的数字来表示程序中的数字 枚举 用枚举而不是定义独立的const int变量 枚举是一种用户定义的数据类型&#xff0c;他用关键词enum以如下语法来声明&#xff1a; enum枚举类型名字{名字0&#xff0c;…&#xff0c;名字n}&#xff1b; 枚举类型名…

外包干了3年,技术退步太明显了。。。。。

先说一下自己的情况&#xff0c;本科生生&#xff0c;18年通过校招进入武汉某软件公司&#xff0c;干了差不多3年的功能测试&#xff0c;今年国庆&#xff0c;感觉自己不能够在这样下去了&#xff0c;长时间呆在一个舒适的环境会让一个人堕落!而我已经在一个企业干了四年的功能…

6_CSS布局之浮动的应用

day06_CSS布局之浮动的应用 本课目标&#xff08;Objective&#xff09; 理解什么是浮动掌握浮动的三种机制掌握浮动的案例应用 1 CSS 布局的三种机制 CSS 提供了 3 种机制来设置盒子的摆放位置&#xff0c;分别是普通流&#xff08;标准流&#xff09;、浮动和定位。 普通流…

HarmonyOS开发:回调实现网络的拦截

前言 基于http封装的一个网络库&#xff0c;里面有一个知识点&#xff0c;在初始化的时候&#xff0c;可以设置请求头拦截和请求错误后的信息的拦截&#xff0c;具体案例如下&#xff1a; et.getInstance().init({netErrorInterceptor: new MyNetErrorInterceptor(), //设置全…

web网络安全

web安全 一&#xff0c;xss 跨站脚本攻击(全称Cross Site Scripting,为和CSS&#xff08;层叠样式表&#xff09;区分&#xff0c;简称为XSS)是指恶意攻击者在Web页面中插入恶意javascript代码&#xff08;也可能包含html代码&#xff09;&#xff0c;当用户浏览网页之时&…

关于北京医学sci论文翻译

在医学领域&#xff0c;翻译论文是一项非常重要的工作。医学论文的翻译需要准确、专业、严谨&#xff0c;同时也需要考虑到医学领域的特殊性和复杂性。那么&#xff0c;如何翻译医学论文呢&#xff1f;北京医学SCI论文翻译哪家好呢&#xff1f; 首先&#xff0c;需要具备专业的…

多目标跟踪数据集

目录 DanceTrack数据集 自己改进的可视化代码: DanceTrack数据集 DanceTrack 是一个大规模的多对象跟踪数据集。用于在遮挡、频繁交叉、同样服装和多样化身体姿态条件下对人进行跟踪。强调运动分析在多对象跟踪中的重要性。 GitHub地址:https://github.com/DanceTrack/Dan…

python自动化测试实战 —— 单元测试框架

软件测试专栏 感兴趣可看&#xff1a;软件测试专栏 自动化测试学习部分源码 python自动化测试相关知识&#xff1a; 【如何学习Python自动化测试】—— 自动化测试环境搭建 【如何学习python自动化测试】—— 浏览器驱动的安装 以及 如何更…

swing快速入门(五)

注释很详细&#xff0c;直接上代码 上一篇 本篇新增内容&#xff1a; 1.布局管理器BorderLayout 2.自适应尺寸方法pack() import java.awt.*; public class swing_test_3 {public static void main(String[] args) {Frame framenew Frame("演示BorderLayout");//…

cordic 算法学习记录

参考&#xff1a;b站教学视频FPGA&#xff1a;Cordic算法介绍与实现_哔哩哔哩_bilibili FPGA硬件实现加减法、移位等操作比较简单&#xff0c;但是实现乘除以及函数计算复杂度高且占用资源多&#xff0c;常见的计算三角函数/平方根的求解方式有①查找表&#xff1a;先把函数对应…

JVM面试连环炮:你准备好迎接挑战了吗?

在Java开发领域&#xff0c;JVM面试一直是一个热门话题。作为一名优秀的开发者&#xff0c;你是否已经准备好迎接这场挑战了呢&#xff1f;今天&#xff0c;我们就来深度解析一下JVM面试的热点问题&#xff0c;帮助你更好地应对面试&#xff0c;一举拿下offer&#xff01; 1、…

vim + ctags 跳转, 查看函数定义

yum install ctags Package ctags-5.8-13.el7.x86_64 already installed and latest version 创建 /home/mzh/pptp-master/tags.sh #!/usr/bin/shWORKDIR/home/mzh/pptp-masterfind ${WORKDIR} -name "*.[c|h]" | xargs ctags -f ${WORKDIR}/tags find /usr/inclu…

mysql数据库学习笔记(1)

今天开始学mysql数据库&#xff0c;为什么要学这个呢&#xff0c;因为数据库可结构化存储大量的数据信息&#xff0c;方便用户进行有效的检索和访问。数据库可有效地保持数据信息的一致性、完整性、降低数据冗余。数据库可满足应用的共享和安全方面的要求&#xff0c;把数据放在…

java--认识异常、自定义异常

1.异常体系 Error&#xff1a;代表的系统级别错误(属于严重问题)&#xff0c;也就是说系统一旦出现问题&#xff0c;sun公司会把这些问题封装成Error对象给出来&#xff0c;说白了&#xff0c;Error是给sun公司自己用的&#xff0c;不是给我们程序员用的&#xff0c;因此我们开…

大数据技术2:大数据处理流程

前言&#xff1a;下图是一个简化的大数据处理流程图&#xff0c;大数据处理的主要流程包括数据收集、数据存储、数据处理、数据应用等主要环节。 1.1 数据收集 大数据处理的第一步是数据的收集。现在的中大型项目通常采用微服务架构进行分布式部署&#xff0c;所以数据的采集需…

MySQL慢SQL优化思路

MySQL慢SQL优化思路 具体思路&#xff1a; 1、慢查询日志记录慢 SQL 2、explain 分析 SQL 的执行计划 3、profile 分析执行耗时 4、Optimizer Trace 分析详情 5、确定问题并采用相应的措施 1、查看慢日志 1.1 使用命令查询慢日志配置 mysql> show variables like s…

mysql 5.7.34升级到5.7.44修补漏洞

mysql 5.7.34旧版本&#xff0c;漏扫有漏洞&#xff0c;升级到最新版本 旧版本5.7.34在 /home/mysql/mysql中安装 备份旧版本数据还有目录 数据库备份升级 tar -xf mysql-5.7.44-el7-x86_64.tar #覆盖旧版本数据库文件 #注意看看文件是否和你起服务的用户一样 \cp -r mysql-5…

decomposition-based multi-objective algorithm4SPDPTW

关键词 文章概述 研究背景 多目标选择性接送和配送问题&#xff08;PDPs&#xff09;&#xff1a;研究涉及多目标选择性接送和配送问题&#xff0c;这些问题传统上从单一目标角度进行探讨&#xff0c;以寻找最具盈利性的请求集合&#xff0c;同时遵守一系列限制条件。 经济和…

基于OpenCV+CNN+IOT+微信小程序智能果实采摘指导系统——深度学习算法应用(含python、JS工程源码)+数据集+模型(五)

目录 前言总体设计系统整体结构图系统流程图 运行环境Python环境TensorFlow 环境Jupyter Notebook环境Pycharm 环境微信开发者工具OneNET云平台 模块实现1. 数据预处理2. 创建模型并编译3. 模型训练及保存4. 上传结果5. 小程序开发1&#xff09;查询图片2&#xff09;查询识别结…