mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
release: Adapt kata-deploy for 3.0.0-rc0
kata-deploy files must be adapted to a new release. The cases where it happens are when the release goes from -> to: * main -> stable: * kata-deploy-stable / kata-cleanup-stable: are removed * stable -> stable: * kata-deploy / kata-cleanup: bump the release to the new one. There are no changes when doing an alpha release, as the files on the "main" branch always point to the "latest" and "stable" tags. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
be22e8408d
commit
be242a3c3c
@ -1,46 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: DaemonSet
|
|
||||||
metadata:
|
|
||||||
name: kubelet-kata-cleanup
|
|
||||||
namespace: kube-system
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
name: kubelet-kata-cleanup
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
name: kubelet-kata-cleanup
|
|
||||||
spec:
|
|
||||||
serviceAccountName: kata-label-node
|
|
||||||
nodeSelector:
|
|
||||||
katacontainers.io/kata-runtime: cleanup
|
|
||||||
containers:
|
|
||||||
- name: kube-kata-cleanup
|
|
||||||
image: quay.io/kata-containers/kata-deploy:stable
|
|
||||||
imagePullPolicy: Always
|
|
||||||
command: [ "bash", "-c", "/opt/kata-artifacts/scripts/kata-deploy.sh reset" ]
|
|
||||||
env:
|
|
||||||
- name: NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
securityContext:
|
|
||||||
privileged: false
|
|
||||||
volumeMounts:
|
|
||||||
- name: dbus
|
|
||||||
mountPath: /var/run/dbus
|
|
||||||
- name: systemd
|
|
||||||
mountPath: /run/systemd
|
|
||||||
volumes:
|
|
||||||
- name: dbus
|
|
||||||
hostPath:
|
|
||||||
path: /var/run/dbus
|
|
||||||
- name: systemd
|
|
||||||
hostPath:
|
|
||||||
path: /run/systemd
|
|
||||||
updateStrategy:
|
|
||||||
rollingUpdate:
|
|
||||||
maxUnavailable: 1
|
|
||||||
type: RollingUpdate
|
|
@ -1,69 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: DaemonSet
|
|
||||||
metadata:
|
|
||||||
name: kata-deploy
|
|
||||||
namespace: kube-system
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
name: kata-deploy
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
name: kata-deploy
|
|
||||||
spec:
|
|
||||||
serviceAccountName: kata-label-node
|
|
||||||
containers:
|
|
||||||
- name: kube-kata
|
|
||||||
image: quay.io/kata-containers/kata-deploy:stable
|
|
||||||
imagePullPolicy: Always
|
|
||||||
lifecycle:
|
|
||||||
preStop:
|
|
||||||
exec:
|
|
||||||
command: ["bash", "-c", "/opt/kata-artifacts/scripts/kata-deploy.sh cleanup"]
|
|
||||||
command: [ "bash", "-c", "/opt/kata-artifacts/scripts/kata-deploy.sh install" ]
|
|
||||||
env:
|
|
||||||
- name: NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
securityContext:
|
|
||||||
privileged: false
|
|
||||||
volumeMounts:
|
|
||||||
- name: crio-conf
|
|
||||||
mountPath: /etc/crio/
|
|
||||||
- name: containerd-conf
|
|
||||||
mountPath: /etc/containerd/
|
|
||||||
- name: kata-artifacts
|
|
||||||
mountPath: /opt/kata/
|
|
||||||
- name: dbus
|
|
||||||
mountPath: /var/run/dbus
|
|
||||||
- name: systemd
|
|
||||||
mountPath: /run/systemd
|
|
||||||
- name: local-bin
|
|
||||||
mountPath: /usr/local/bin/
|
|
||||||
volumes:
|
|
||||||
- name: crio-conf
|
|
||||||
hostPath:
|
|
||||||
path: /etc/crio/
|
|
||||||
- name: containerd-conf
|
|
||||||
hostPath:
|
|
||||||
path: /etc/containerd/
|
|
||||||
- name: kata-artifacts
|
|
||||||
hostPath:
|
|
||||||
path: /opt/kata/
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
- name: dbus
|
|
||||||
hostPath:
|
|
||||||
path: /var/run/dbus
|
|
||||||
- name: systemd
|
|
||||||
hostPath:
|
|
||||||
path: /run/systemd
|
|
||||||
- name: local-bin
|
|
||||||
hostPath:
|
|
||||||
path: /usr/local/bin/
|
|
||||||
updateStrategy:
|
|
||||||
rollingUpdate:
|
|
||||||
maxUnavailable: 1
|
|
||||||
type: RollingUpdate
|
|
Loading…
Reference in New Issue
Block a user