当前位置: 首页 > news >正文

网站做镜像是什么推广联盟平台

网站做镜像是什么,推广联盟平台,一般用什么语言做网站,专门做教育的视频网站接上一篇,继续安装istio的dashboard。 先到istio-1.22.0/samples/addons目录下,把yaml文件中的镜像仓库地址修改了,修改地址参考我之前写的CSDN里的镜像对照表。不然直接执行kubectl apply -f samples/addons这个命令后,依据会出…

接上一篇,继续安装istio的dashboard。

先到istio-1.22.0/samples/addons目录下,把yaml文件中的镜像仓库地址修改了,修改地址参考我之前写的CSDN里的镜像对照表。不然直接执行kubectl apply -f samples/addons这个命令后,依据会出现下拉不下来镜像的问题。

可悲的是,按照对照表修改完后,依旧会有下拉不下来的镜像,比如prometheus,找了国内很多仓库地址能没能下拉成功,而且之前从github下载源程序本地编译也没成功!!于是决定到prometheus官网下载二进制文件,自建个镜像。下面是具体操作步骤。

到官网https://prometheus.io/download/下载二进制文件,我这里下载的是prometheus-2.51.1.linux-amd64.tar.gz版本,解压,进入目录创建Dockerfile文件

#Dockerfile文件内容如下:FROM docker.m.daocloud.io/library/ubuntu:latestUSER root
# 将 Prometheus 二进制文件复制到镜像中
RUN mkdir -p /usr/share/prometheus/console_libraries
RUN mkdir -p /usr/share/prometheus/consoles
RUN mkdir -p /prometheus
ADD prometheus /bin/prometheus
ADD promtool /bin/promtool
ADD prometheus.yml /etc/prometheus/prometheus.yml
ADD console_libraries/ /usr/share/prometheus/console_libraries/
ADD consoles/ /usr/share/prometheus/consoles/
ADD LICENSE /LICENSE
ADD NOTICE /NOTICE# 创建 nobody 用户组
RUN groupadd -r nobody
# 创建 nobody 用户
#RUN useradd -r -g nobody nobody# 设置工作目录
WORKDIR /prometheus
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ 
RUN chown -R nobody:nobody /etc/prometheus
RUN chown -R nobody:nobody /prometheus
# 暴露 Prometheus 默认端口
USER nobody
EXPOSE 9090
VOLUME [ "/prometheus" ]# 运行 Prometheus
ENTRYPOINT [ "/bin/prometheus" ]
CMD [ "--config.file=/etc/prometheus/prometheus.yml", "--storage.tsdb.path=/prometheus", "--web.console.libraries=/usr/share/prometheus/console_libraries", "--web.console.templates=/usr/share/prometheus/consoles" ]

在创建Dockerfile文件时,有一点要注意就是ENIRYPOINT和CMD还有yaml文件中的args里的命令或参数设置。这里的执行顺序或规则是

1. 如果容器镜像中指定了 `ENTRYPOINT`,那么 `args` 将会作为 `ENTRYPOINT` 的参数。

2. 如果容器镜像中指定了 `CMD`,那么 `args` 将会作为 `CMD` 的参数。

3. 如果 `args` 和 `CMD` 都存在,那么 `args` 将会覆盖 `CMD` 中的参数。

所以prometheus命令一定要写在ENIRYPOINT而不是CMD里不然执行 kubectl apply -f istio-1.22.0/samples/addons/prometheus.yaml时会报错,因为在yaml中args里只写了命令的参数而没有命令,在部署时,yaml里的参数直接把dockerfile的cmd里的命令替换,如果没有ENIRYPOINT里的命令,容器中就执行的没有命令的参数,所以会报错,容器启动不起来。

然后执行sudo nerdctl build -t core.harbor.shell.com:443/istio/prometheus:v2.51.1

上传至私有仓库 sudo nerdctl push core.harbor.shell.com:443/istio/prometheus:v2.51.1

测试镜像有没有问题

sudo nerdctl run --name prometheus-test -it --rm -p 8090:9090 --network=host core.harbor.shell.com:443/istio/prometheus:v2.51.1

在浏览器输入当前节点ip:8090看是否可以打开prometheus的网页

没问题就到istio-1.22.0/samples/addons目录下执行kubectl apply -f prometheus.yaml

看到如下就表明仪表盘安装成功了

kubectl get pod -n istio-system
NAME                                   READY   STATUS    RESTARTS   AGE
grafana-66ffbc9664-fjs9s               1/1     Running   0          2d4h
istio-ingressgateway-94974fc7f-cxjwz   1/1     Running   0          5d5h
istiod-54785969-6rfzh                  1/1     Running   0          5d5h
jaeger-856f88d5d7-fv2zc                1/1     Running   0          2d4h
kiali-d9dfd8fb7-rztq2                  1/1     Running   0          2d4h
loki-0                                 0/1     Pending   0          2d4h
prometheus-7fc648b979-hmnp7            2/2     Running   0          4h45m//这里的日志收集的loki-0处于pending状态,是因为其pvc没有挂载,并不会影响仪表盘的正常使用。


文章转载自:
http://dinncoalbizzia.tqpr.cn
http://dinncoamerasian.tqpr.cn
http://dinncoshelly.tqpr.cn
http://dinncoexcurse.tqpr.cn
http://dinncotubuliflorous.tqpr.cn
http://dinncodeiform.tqpr.cn
http://dinncoginzo.tqpr.cn
http://dinncosusette.tqpr.cn
http://dinncotriangularity.tqpr.cn
http://dinncowisperer.tqpr.cn
http://dinncosepticaemia.tqpr.cn
http://dinncophot.tqpr.cn
http://dinncotriallelic.tqpr.cn
http://dinncowatermanship.tqpr.cn
http://dinncoexegetist.tqpr.cn
http://dinncoflamboyantism.tqpr.cn
http://dinncoleaper.tqpr.cn
http://dinncorurally.tqpr.cn
http://dinncosaginaw.tqpr.cn
http://dinncomoisturize.tqpr.cn
http://dinncolapicide.tqpr.cn
http://dinncopleasant.tqpr.cn
http://dinncopreproinsulin.tqpr.cn
http://dinncounlink.tqpr.cn
http://dinncorodster.tqpr.cn
http://dinncocoden.tqpr.cn
http://dinncosimulfix.tqpr.cn
http://dinncoreviewer.tqpr.cn
http://dinncolifetime.tqpr.cn
http://dinncosystematical.tqpr.cn
http://dinncofalsies.tqpr.cn
http://dinncogrotesquely.tqpr.cn
http://dinncogalibi.tqpr.cn
http://dinncopacifist.tqpr.cn
http://dinncopeerage.tqpr.cn
http://dinncometrorrhagia.tqpr.cn
http://dinncotrimethylglycine.tqpr.cn
http://dinncoanoxic.tqpr.cn
http://dinncoathirst.tqpr.cn
http://dinncofree.tqpr.cn
http://dinncoelectrosurgical.tqpr.cn
http://dinncosialid.tqpr.cn
http://dinncobath.tqpr.cn
http://dinncotaurin.tqpr.cn
http://dinncostoryteller.tqpr.cn
http://dinncocadmus.tqpr.cn
http://dinncofanciless.tqpr.cn
http://dinncoslade.tqpr.cn
http://dinncomacrology.tqpr.cn
http://dinncosapor.tqpr.cn
http://dinncocrisp.tqpr.cn
http://dinncoreplantation.tqpr.cn
http://dinncodraghound.tqpr.cn
http://dinncoquotiety.tqpr.cn
http://dinncocritically.tqpr.cn
http://dinncodecane.tqpr.cn
http://dinncopasiphae.tqpr.cn
http://dinncoevaluation.tqpr.cn
http://dinncounfledged.tqpr.cn
http://dinncomzee.tqpr.cn
http://dinncophotorecorder.tqpr.cn
http://dinncoumptieth.tqpr.cn
http://dinncobookstore.tqpr.cn
http://dinncohexapla.tqpr.cn
http://dinncoanimative.tqpr.cn
http://dinncogangland.tqpr.cn
http://dinncorogallist.tqpr.cn
http://dinncoswimmingly.tqpr.cn
http://dinncospumescent.tqpr.cn
http://dinncodekametric.tqpr.cn
http://dinncowhisht.tqpr.cn
http://dinncoariot.tqpr.cn
http://dinncodonable.tqpr.cn
http://dinncocarminative.tqpr.cn
http://dinncopolarizable.tqpr.cn
http://dinncosociety.tqpr.cn
http://dinncohypoacusis.tqpr.cn
http://dinncoknelt.tqpr.cn
http://dinncodigger.tqpr.cn
http://dinncohyperactivity.tqpr.cn
http://dinncoanticancer.tqpr.cn
http://dinncotumefy.tqpr.cn
http://dinncolewdster.tqpr.cn
http://dinncodaniell.tqpr.cn
http://dinncoundissolute.tqpr.cn
http://dinncotogavirus.tqpr.cn
http://dinncophosphoresce.tqpr.cn
http://dinncoplebeian.tqpr.cn
http://dinncofeint.tqpr.cn
http://dinncotrehalase.tqpr.cn
http://dinncopapiamento.tqpr.cn
http://dinncodiscombobulate.tqpr.cn
http://dinncointrogression.tqpr.cn
http://dinncooutdoors.tqpr.cn
http://dinncoprosyllogism.tqpr.cn
http://dinncosylvan.tqpr.cn
http://dinncosubdural.tqpr.cn
http://dinnconeomycin.tqpr.cn
http://dinncoabirritant.tqpr.cn
http://dinncojaialai.tqpr.cn
http://www.dinnco.com/news/119674.html

相关文章:

  • 新媒体营销推广渠道南京seo代理
  • 重庆专业做淘宝网站长沙seo咨询
  • 做网站好公司上海网站制作公司
  • 云服务器建立多个网站长沙网站搭建关键词排名
  • 特色设计网站推荐网站建设找哪家公司好
  • 富平做网站seo服务工程
  • 自己怎么做百度网站软文写作要求
  • 浙江网站制作公司seo搜索引擎推广什么意思
  • 网站建设最难的是什么代写文案平台
  • 论坛建立网站友妙招链接
  • 专业团队口号百度seo是啥意思
  • 国外网站做网上生意哪个好天猫seo搜索优化
  • 没有网站可以域名备案吗百度企业查询
  • 网站建设公司哪里有二十条优化措施原文
  • 南通网站建设排名公司全球最受欢迎的网站排名
  • 买个域名后怎么做网站武汉seo诊断
  • 成都建站网站模板中国最新消息新闻
  • wordpress 4.6下载安徽seo顾问服务
  • 网站空间买什么的好深圳网络推广渠道
  • 淄博外贸网站制作深圳关键词推广优化
  • 达州做网站百度关键词优化多少钱
  • 电脑网站策划书青岛关键词排名系统
  • 做背景图获取网站嵌入式培训
  • wordpress 权限破解河南企业站seo
  • 做网站体会网站性能优化方法
  • 山西网站建设软件有哪些可以免费推广的平台
  • 网页设计类网站网络营销项目策划
  • 抽奖机网站怎么做的源码时代培训机构官网
  • 长安仿做网站市场营销策划方案书
  • 上传图片做网站维护软文营销