Flux不会自动拉动新容器映像的部署

时间:2020-06-07 03:57:52

标签: kubernetes flux

我想问一下Kubernetes中的gitops的流量。 我对使用助焊剂“自动部署新容器图像”有疑问

我将ecr用作映像存储库,但是当我推送一个新的容器映像时,它不会替换为kubernetes中的最新映像。 我已经在我的kubernetes部署yaml中添加了fluxcd.io/automated: true,但是它不起作用,

以下是我的部署yaml:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
  namespace: default
  annotations:
    fluxcd.io/automated: "true"
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ny-app
  template:
    metadata:
      labels:
        app: my-app
    spec:
      containers:
      - name: web-container
        image: xxxxxxx.dkr.ecr.ap-southeast-1.amazonaws.com/my-app:6703dbf
        imagePullPolicy: Always
        ports:
        - containerPort: 80
      imagePullSecrets:
        - name: aws-cred

流量记录:

ts=2020-06-07T04:10:13.117058444Z caller=warming.go:198 component=warmer info="refreshing image" image=555730086661.dkr.ecr.ap-southeast-1.amazonaws.com/sunflower-web tag_count=3 to_update=3 of_which_refresh=0 of_which_missing=3

ts=2020-06-07T04:10:13.287139096Z caller=warming.go:206 component=warmer updated=555730086661.dkr.ecr.ap-southeast-1.amazonaws.com/sunflower-web successful=3 attempted=3

谢谢

0 个答案:

没有答案