kubectl patch deployment your-deployment --namespace=namespace -p '{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":30}}}}'
Dont forget to change value and be shure that "imagePullPolicy: Always" is set.
[ *** ] A start job is running for LSB: Raise network interfaces.
Сделал несколько вещей:
в /etc/networ/interfaces привел все к виду
# The loopback network interfaceauto loauto eth0auto eth1iface lo inet loopback # The primary network interfaceallow-hotplug eth0iface eth0 inet static [...] allow-hotplug eth1iface eth1 inet static [...]
пропатчил
/lib/systemd/system/ifup@.service
--- ExecStart=/sbin/ifup --allow=hotplug %I+++ ExecStart=/sbin/ifup --allow=auto %I
ExecStart=/sbin/ifup --allow=auto
start_on_boot() {
if init_is_upstart; then exit 1
fi process_options
check_ifstate
if [ "$CONFIGURE_INTERFACES" = no ] then log_action_msg "Not configuring network interfaces, see /etc/default/networking" exit 0
fi set -f exclusions=$(process_exclusions) log_action_begin_msg "Configuring network interfaces" if ifup -a $exclusions $verbose && ifup_hotplug $exclusions $verbose then log_action_end_msg $? else log_action_end_msg $? fi}
case "$1" in
start) start_on_boot() & ;;
[root@xen ~]# lspci | grep USB 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
cat /proc/bus/usb/devices
T: Bus=02 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 11 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=8564 ProdID=1000 Rev=11.00 S: Manufacturer=JetFlash S: Product=Mass Storage Device S: SerialNumber=643SX46T1R2IPSGQ C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=31875us
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2 B: Alloc= 0/800 us ( 0%), #Int= 1, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 2.06 S: Manufacturer=Linux 2.6.32.43-0.4.1.xs1.8.0.835.170778xen ehci_hcd S: Product=EHCI Host Controller S: SerialNumber=0000:00:1d.0 <------------------------------------<------------------------<--------- C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
[root@xen ~]# xe vm-list name-label=test
uuid ( RO) : cd9c4655-dc8a-c086-103c-c1716293449d
name-label ( RW): test
power-state ( RO): running
[root@xen ~]# xe vm-param-set other-config:pci=0/000:00:1d.0 uuid=cd9c4655-dc8a-c086-103c-c1716293449d
xe vm-param-list uuid=cd9c4655-dc8a-c086-103c-c1716293449d | grep other-config
xe vm-param-remove param-name=other-config param-key=pci uuid=cd9c4655-dc8a-c086-103c-c1716293449ds
Украдено с http://wiki.autosys.tk/Citrix.%D0%9F%D1%80%D0%BE%D0%B1%D1%80%D0%BE%D1%81-USB-%D0%B2-XenServer-6-2-USB-Passthrough.ashx