基于k8s与jenkins的GitOps

北京痤疮中医医院 http://m.39.net/baidianfeng/a_8595980.html

部署gitlab

namespace

redis

secret

postgresql

gitlab

GitOps相关概念比较多,在很多文章中,也有相关介绍,由于个yaml文件比较多,就不进行详细描述了。

部署gitlabnamespace

#cd/data1/k8s/#mkdirgitops#mkdirgitlab#vimnamespace.yamlapiVersion:v1kind:Namespacemetadata:name:gitlab#kubectlapply-fnamespace.yamlnamespace/gitlabcreatedredis

#vimredis.yaml---kind:ServiceapiVersion:v1metadata:name:gitlab-redisnamespace:gitlablabels:app:gitlab-redisspec:type:ClusterIPports:-name:redisprotocol:TCPport:targetPort:redisselector:app:gitlab-redis---kind:DeploymentapiVersion:apps/v1metadata:name:gitlab-redisnamespace:gitlablabels:app:gitlab-redisspec:replicas:1selector:matchLabels:app:gitlab-redistemplate:metadata:name:gitlab-redislabels:app:gitlab-redisspec:containers:-name:gitlab-redisimage:"sameersbn/redis:4.0.9-3"ports:-name:rediscontainerPort:protocol:TCPresources:limits:cpu:mmemory:1Girequests:cpu:mmemory:1GilivenessProbe:exec:



转载请注明地址:http://www.sanbaicaoasb.com/scls/8519.html
  • 上一篇文章:
  • 下一篇文章:
  • 热点文章

    • 没有热点文章

    推荐文章

    • 没有推荐文章