┌──(yang㉿Arch)-[~/yang_files/study/gitops-repo] └─$ kubectl get pods -n registry-demo NAME READY STATUS RESTARTS AGE private-registry-9d94fc457-rnkhm 1/1 Running 0 55s ┌──(yang㉿Arch)-[~/yang_files/study/gitops-repo] └─$ kubectl get svc -n registry-demo NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE private-registry NodePort 10.105.247.158 <none> 5000:30525/TCP 7d15h
┌──(yang㉿Arch)-[~/yang_files/study/gitops-repo] └─$ kubectl get pods NAME READY STATUS RESTARTS AGE gitea-5858df9866-mnv2n 1/1 Running 4 (47m ago) 15h ┌──(yang㉿Arch)-[~/yang_files/study/gitops-repo] └─$ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE gitea-service NodePort 10.104.67.7 <none> 3000:30081/TCP,22:30022/TCP 2d14h
# 构建基础镜像 FROM golang:alpine AS build-env ADD . /src RUN cd /src && go build -o my-app # 构建最终镜像 FROM alpine WORKDIR /my-app COPY --from=build-env /src/my-app /my-app/my-app ENTRYPOINT ./my-app
[root@localhost ~]# vgdisplay --- Volume group --- VG Name centos System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 1 Act PV 1 VG Size <29.00 GiB PE Size 4.00 MiB Total PE 7423 Alloc PE / Size 7423 / <29.00 GiB Free PE / Size 0 / 0 VG UUID 9v9LR6-IphT-JJOG-iSOT-AxuP-N8LR-7YzRrp
[root@localhost ~]# lvdisplay --- Logical volume --- LV Path /dev/centos/root LV Name root VG Name centos LV UUID cQ8oB9-TMEp-UlsQ-GWlt-5iTh-KVkb-L5PsXV LV Write Access read/write LV Creation host, time localhost, 2021-12-29 06:20:55 +0000 LV Status available # open 1 LV Size <26.00 GiB Current LE 6655 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:0 --- Logical volume --- LV Path /dev/centos/swap LV Name swap VG Name centos LV UUID WPW1Ma-8qv4-B0Zp-RJKV-20sY-s74z-TVOJ5N LV Write Access read/write LV Creation host, time localhost, 2021-12-29 06:20:55 +0000 LV Status available # open 2 LV Size 3.00 GiB Current LE 768 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:1
Keepalived_vrrp[PID]: IPVS: Can't initialize ipvs: Protocol not available Keepalived_vrrp[PID]: VRRP_Instance(VI_1): Sending/recving on socket to [224.0.0.18] failed Keepalived_vrrp[PID]: VRRP_Instance(VI_1): Entering FAULT STATE (通信失败)
Check old driver and unload it. Build the module and install In file included from /root/r8125-9.008.00/src/r8125_n.c:83:0: /root/r8125-9.008.00/src/r8125.h:69:20: error: redefinition of ‘ether_addr_copy’ static inline void ether_addr_copy(u8 *dst, const u8 *src) ^ In file included from /root/r8125-9.008.00/src/r8125_n.c:43:0: include/linux/etherdevice.h:246:20: note: previous definition of ‘ether_addr_copy’ was here static inline void ether_addr_copy(u8 *dst, const u8 *src) ^ /root/r8125-9.008.00/src/r8125_n.c:12245:9: error: unknown field ‘ndo_change_mtu’ specified in initializer .ndo_change_mtu = rtl8125_change_mtu, ^ /root/r8125-9.008.00/src/r8125_n.c:12245:9: warning: missing braces around initializer [-Wmissing-braces] /root/r8125-9.008.00/src/r8125_n.c:12245:9: warning: (near initialization for ‘rtl8125_netdev_ops.<anonymous>’) [-Wmissing-braces] /root/r8125-9.008.00/src/r8125_n.c:12245:9: warning: initialization from incompatible pointer type [enabled by default] /root/r8125-9.008.00/src/r8125_n.c:12245:9: warning: (near initialization for ‘rtl8125_netdev_ops.<anonymous>.ndo_get_stats64’) [enabled by default] /root/r8125-9.008.00/src/r8125_n.c: In function ‘rtl8125_poll_msix_other’: /root/r8125-9.008.00/src/r8125_n.c:12395:22: warning: unused variable ‘work_to_do’ [-Wunused-variable] unsigned int work_to_do = RTL_NAPI_QUOTA(budget, dev); ^ /root/r8125-9.008.00/src/r8125_n.c: In function ‘rtl8125_rx_interrupt’: /root/r8125-9.008.00/src/r8125_n.c:15124:28: error: ‘struct net_device’ has no member named ‘last_rx’ dev->last_rx = jiffies; ^ make[3]: *** [/root/r8125-9.008.00/src/r8125_n.o] Error 1 make[2]: *** [_module_/root/r8125-9.008.00/src] Error 2 make[1]: *** [modules] Error 2 make: *** [modules] Error 2 #warming的可忽略,处理error即可
4.1 错误1
1 2 3 4 5 6 7 8 9 10 11
/root/r8125-9.008.00/src/r8125.h:69:20: error: redefinition of ‘ether_addr_copy’
[root@localhost create_ap-0.4.6]# lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter # 可以查看到此无线的对应网卡芯片为RTL8188EUS