1.xshell传不了文件输出0000如何解决.....2.k8s中metalLB文件内容
xshell传不了文件输出0000如何解决
centos版本
1,因为没有工具下载即可
yum -y install lrzsz
k8s中metalLB文件内容
2.metalLB文件内容
cat metallb-native.yaml
apiVersion: v1
kind: Namespace
metadata:labels:pod-security.kubernetes.io/audit: privilegedpod-security.kubernetes.io/enforce: privilegedpod-security.kubernetes.io/warn: privilegedname: metallb-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:annotations:controller-gen.kubebuilder.io/version: v0.14.0name: bfdprofiles.metallb.io
spec:group: metallb.ionames:kind: BFDProfilelistKind: BFDProfileListplural: bfdprofilessingular: bfdprofilescope: Namespacedversions:- additionalPrinterColumns:- jsonPath: .spec.passiveModename: Passive Modetype: boolean- jsonPath: .spec.transmitIntervalname: Transmit Intervaltype: integer- jsonPath: .spec.receiveIntervalname: Receive Intervaltype: integer- jsonPath: .spec.detectMultipliername: Multipliertype: integername: v1beta1schema:openAPIV3Schema:description: |-BFDProfile represents the settings of the bfd session that can beoptionally associated with a BGP session.properties:apiVersion:description: |-APIVersion defines the versioned schema of this representation of an object.Servers should convert recognized schemas to the latest internal value, andmay reject unrecognized values.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resourcestype: stringkind:description: |-Kind is a string value representing the REST resource this object represents.Servers may infer this from the endpoint the client submits requests to.Cannot be updated.In CamelCase.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindstype: stringmetadata:type: objectspec:description: BFDProfileSpec defines the desired state of BFDProfile.properties:detectMultiplier:description: |-Configures the detection multiplier to determinepacket loss. The remote transmission interval will be multipliedby this value to determine the connection loss detection timer.format: int32maximum: 255minimum: 2type: integerechoInterval:description: |-Configures the minimal echo receive transmissioninterval that this system is capable of handling in milliseconds.Defaults to 50msformat: int32maximum: 60000minimum: 10type: integerechoMode:description: |-Enables or disables the echo transmission mode.This mode is disabled by default, and not supported on multihops setups.type: booleanminimumTtl:description: |-For multi hop sessions only: configure the minimumexpected TTL for an incoming BFD control packet.format: int32maximum: 254minimum: 1type: integerpassiveMode:description: |-Mark session as passive: a passive session will notattempt to start the connection and will wait for control packetsfrom peer before it begins replying.type: booleanreceiveInterval:description: |-The minimum interval that this system is capable ofreceiving control packets in milliseconds.Defaults to 300ms.format: int32maximum: 60000minimum: 10type: integertransmitInterval:description: |-The minimum transmission interval (less jitter)that this system wants to use to send BFD control packets inmilliseconds. Defaults to 300msformat: int32maximum: 60000minimum: 10type: integertype: objectstatus:description: BFDProfileStatus defines the observed state of BFDProfile.type: objecttype: objectserved: truestorage: truesubresources:status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:annotations:controller-gen.kubebuilder.io/version: v0.14.0name: bgpadvertisements.metallb.io
spec:group: metallb.ionames:kind: BGPAdvertisementlistKind: BGPAdvertisementListplural: bgpadvertisementssingular: bgpadvertisementscope: Namespacedversions:- additionalPrinterColumns:- jsonPath: .spec.ipAddressPoolsname: IPAddressPoolstype: string- jsonPath: .spec.ipAddressPoolSelectorsname: IPAddressPool Selectorstype: string- jsonPath: .spec.peersname: Peerstype: string- jsonPath: .spec.nodeSelectorsname: Node Selectorspriority: 10type: stringname: v1beta1schema:openAPIV3Schema:description: |-BGPAdvertisement allows to advertise the IPs comingfrom the selected IPAddressPools via BGP, setting the parameters of theBGP Advertisement.properties:apiVersion:description: |-APIVersion defines the versioned schema of this representation of an object.Servers should convert recognized schemas to the latest internal value, andmay reject unrecognized values.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resourcestype: stringkind:description: |-Kind is a string value representing the REST resource this object represents.Servers may infer this from the endpoint the client submits requests to.Cannot be updated.In CamelCase.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindstype: stringmetadata:type: objectspec:description: BGPAdvertisementSpec defines the desired state of BGPAdvertisement.properties:aggregationLength:default: 32description: The aggregation-length advertisement option lets you“roll up” the /32s into a larger prefix. Defaults to 32. Works forIPv4 addresses.format: int32minimum: 1type: integeraggregationLengthV6:default: 128description: The aggregation-length advertisement option lets you“roll up” the /128s into a larger prefix. Defaults to 128. Worksfor IPv6 addresses.format: int32type: integercommunities:description: |-The BGP communities to be associated with the announcement. Each item can be a standard community of theform 1234:1234, a large community of the form large:1234:1234:1234 or the name of an alias defined in theCommunity CRD.items:type: stringtype: arrayipAddressPoolSelectors:description: |-A selector for the IPAddressPools which would get advertised via this advertisement.If no IPAddressPool is selected by this or by the list, the advertisement is applied to all the IPAddressPools.items:description: |-A label selector is a label query over a set of resources. The result of matchLabels andmatchExpressions are ANDed. An empty label selector matches all objects. A nulllabel selector matches no objects.properties:matchExpressions:description: matchExpressions is a list of label selector requirements.The requirements are ANDed.items:description: |-A label selector requirement is a selector that contains values, a key, and an operator thatrelates the key and values.properties:key:description: key is the label key that the selector appliesto.type: stringoperator:description: |-operator represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists and DoesNotExist.type: stringvalues:description: |-values is an array of string values. If the operator is In or NotIn,the values array must be non-empty. If the operator is Exists or DoesNotExist,the values array must be empty. This array is replaced during a strategicmerge patch.items:type: stringtype: arrayrequired:- key- operatortype: objecttype: arraymatchLabels:additionalProperties:type: stringdescription: |-matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabelsmap is equivalent to an element of matchExpressions, whose key field is "key", theoperator is "In", and the values array contains only "value". The requirements are ANDed.type: objecttype: objectx-kubernetes-map-type: atomictype: arrayipAddressPools:description: The list of IPAddressPools to advertise via this advertisement,selected by name.items:type: stringtype: arraylocalPref:description: |-The BGP LOCAL_PREF attribute which is used by BGP best path algorithm,Path with higher localpref is preferred over one with lower localpref.format: int32type: integernodeSelectors:description: NodeSelectors allows to limit the nodes to announce asnext hops for the LoadBalancer IP. When empty, all the nodes having areannounced as next hops.items:description: |-A label selector is a label query over a set of resources. The result of matchLabels andmatchExpressions are ANDed. An empty label selector matches all objects. A nulllabel selector matches no objects.properties:matchExpressions:description: matchExpressions is a list of label selector requirements.The requirements are ANDed.items:description: |-A label selector requirement is a selector that contains values, a key, and an operator thatrelates the key and values.properties:key:description: key is the label key that the selector appliesto.type: stringoperator:description: |-operator represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists and DoesNotExist.type: stringvalues:description: |-values is an array of string values. If the operator is In or NotIn,the values array must be non-empty. If the operator is Exists or DoesNotExist,the values array must be empty. This array is replaced during a strategicmerge patch.items:type: stringtype: arrayrequired:- key- operatortype: objecttype: arraymatchLabels:additionalProperties:type: stringdescription: |-matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabelsmap is equivalent to an element of matchExpressions, whose key field is "key", theoperator is "In", and the values array contains only "value". The requirements are ANDed.type: objecttype: objectx-kubernetes-map-type: atomictype: arraypeers:description: |-Peers limits the bgppeer to advertise the ips of the selected pools to.When empty, the loadbalancer IP is announced to all the BGPPeers configured.items:type: stringtype: arraytype: objectstatus:description: BGPAdvertisementStatus defines the observed state of BGPAdvertisement.type: objecttype: objectserved: truestorage: truesubresources:status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:annotations:controller-gen.kubebuilder.io/version: v0.14.0name: bgppeers.metallb.io
spec:conversion:strategy: Webhookwebhook:clientConfig:caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlGWlRDQ0EwMmdBd0lCQWdJVU5GRW1XcTM3MVpKdGkrMmlSQzk1WmpBV1MxZ3dEUVlKS29aSWh2Y05BUUVMDQpCUUF3UWpFTE1Ba0dBMVVFQmhNQ1dGZ3hGVEFUQmdOVkJBY01ERVJsWm1GMWJIUWdRMmwwZVRFY01Cb0dBMVVFDQpDZ3dUUkdWbVlYVnNkQ0JEYjIxd1lXNTVJRXgwWkRBZUZ3MHlNakEzTVRrd09UTXlNek5hRncweU1qQTRNVGd3DQpPVE15TXpOYU1FSXhDekFKQmdOVkJBWVRBbGhZTVJVd0V3WURWUVFIREF4RVpXWmhkV3gwSUVOcGRIa3hIREFhDQpCZ05WQkFvTUUwUmxabUYxYkhRZ1EyOXRjR0Z1ZVNCTWRHUXdnZ0lpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElDDQpEd0F3Z2dJS0FvSUNBUUNxVFpxMWZRcC9vYkdlenhES0o3OVB3Ny94azJwellualNzMlkzb1ZYSm5sRmM4YjVlDQpma2ZZQnY2bndscW1keW5PL2phWFBaQmRQSS82aFdOUDBkdVhadEtWU0NCUUpyZzEyOGNXb3F0MGNTN3pLb1VpDQpvcU1tQ0QvRXVBeFFNZjhRZDF2c1gvVllkZ0poVTZBRXJLZEpIaXpFOUJtUkNkTDBGMW1OVW55Rk82UnRtWFZUDQpidkxsTDVYeTc2R0FaQVBLOFB4aVlDa0NtbDdxN0VnTWNiOXlLWldCYmlxQ3VkTXE5TGJLNmdKNzF6YkZnSXV4DQo1L1pXK2JraTB2RlplWk9ZODUxb1psckFUNzJvMDI4NHNTWW9uN0pHZVZkY3NoUnh5R1VpSFpSTzdkaXZVTDVTDQpmM2JmSDFYbWY1ZDQzT0NWTWRuUUV2NWVaOG8zeWVLa3ZrbkZQUGVJMU9BbjdGbDlFRVNNR2dhOGFaSG1URSttDQpsLzlMSmdDYjBnQmtPT0M0WnV4bWh2aERKV1EzWnJCS3pMQlNUZXN0NWlLNVlwcXRWVVk2THRyRW9FelVTK1lsDQpwWndXY2VQWHlHeHM5ZURsR3lNVmQraW15Y3NTU1UvVno2Mmx6MnZCS21NTXBkYldDQWhud0RsRTVqU2dyMjRRDQp0eGNXLys2N3d5KzhuQlI3UXdqVTFITndVRjBzeERWdEwrZ1NHVERnSEVZSlhZelYvT05zMy94TkpoVFNPSkxNDQpoeXNVdyttaGdackdhbUdXcHVIVU1DUitvTWJzMTc1UkcrQjJnUFFHVytPTjJnUTRyOXN2b0ZBNHBBQm8xd1dLDQpRYjRhY3pmeVVscElBOVFoSmFsZEY3S3dPSHVlV3gwRUNrNXg0T2tvVDBvWVp0dzFiR0JjRGtaSmF3SURBUUFCDQpvMU13VVRBZEJnTlZIUTRFRmdRVW90UlNIUm9IWTEyRFZ4R0NCdEhpb1g2ZmVFQXdId1lEVlIwakJCZ3dGb0FVDQpvdFJTSFJvSFkxMkRWeEdDQnRIaW9YNmZlRUF3RHdZRFZSMFRBUUgvQkFVd0F3RUIvekFOQmdrcWhraUc5dzBCDQpBUXNGQUFPQ0FnRUFSbkpsWWRjMTFHd0VxWnh6RDF2R3BDR2pDN2VWTlQ3aVY1d3IybXlybHdPYi9aUWFEa0xYDQpvVStaOVVXT1VlSXJTdzUydDdmQUpvVVAwSm5iYkMveVIrU1lqUGhvUXNiVHduOTc2ZldBWTduM3FMOXhCd1Y0DQphek41OXNjeUp0dlhMeUtOL2N5ak1ReDRLajBIMFg0bWJ6bzVZNUtzWWtYVU0vOEFPdWZMcEd0S1NGVGgrSEFDDQpab1Q5YnZHS25adnNHd0tYZFF0Wnh0akhaUjVqK3U3ZGtQOTJBT051RFNabS8rWVV4b2tBK09JbzdSR3BwSHNXDQo1ZTdNY0FTVXRtb1FORXd6dVFoVkJaRWQ1OGtKYjUrV0VWbGNzanlXNnRTbzErZ25tTWNqR1BsMWgxR2hVbjV4DQpFY0lWRnBIWXM5YWo1NmpBSjk1MVQvZjhMaWxmTlVnanBLQ0c1bnl0SUt3emxhOHNtdGlPdm1UNEpYbXBwSkI2DQo4bmdHRVluVjUrUTYwWFJ2OEhSSGp1VG9CRHVhaERrVDA2R1JGODU1d09FR2V4bkZpMXZYWUxLVllWb1V2MXRKDQo4dVdUR1pwNllDSVJldlBqbzg5ZytWTlJSaVFYUThJd0dybXE5c0RoVTlqTjA0SjdVL1RvRDFpNHE3VnlsRUc5DQorV1VGNkNLaEdBeTJIaEhwVncyTGFoOS9lUzdZMUZ1YURrWmhPZG1laG1BOCtqdHNZamJadnR5Mm1SWlF0UUZzDQpUU1VUUjREbUR2bVVPRVRmeStpRHdzK2RkWXVNTnJGeVVYV2dkMnpBQU4ydVl1UHFGY2pRcFNPODFzVTJTU3R3DQoxVzAyeUtYOGJEYmZFdjBzbUh3UzliQnFlSGo5NEM1Mjg0YXpsdTBmaUdpTm1OUEM4ckJLRmhBPQ0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==service:name: metallb-webhook-servicenamespace: metallb-systempath: /convertconversionReviewVersions:- v1beta1- v1beta2group: metallb.ionames:kind: BGPPeerlistKind: BGPPeerListplural: bgppeerssingular: bgppeerscope: Namespacedversions:- additionalPrinterColumns:- jsonPath: .spec.peerAddressname: Addresstype: string- jsonPath: .spec.peerASNname: ASNtype: string- jsonPath: .spec.bfdProfilename: BFD Profiletype: string- jsonPath: .spec.ebgpMultiHopname: Multi Hopstype: stringname: v1beta1schema:openAPIV3Schema:description: BGPPeer is the Schema for the peers API.properties:apiVersion:description: |-APIVersion defines the versioned schema of this representation of an object.Servers should convert recognized schemas to the latest internal value, andmay reject unrecognized values.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resourcestype: stringkind:description: |-Kind is a string value representing the REST resource this object represents.Servers may infer this from the endpoint the client submits requests to.Cannot be updated.In CamelCase.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindstype: stringmetadata:type: objectspec:description: BGPPeerSpec defines the desired state of Peer.properties:bfdProfile:type: stringebgpMultiHop:description: EBGP peer is multi-hops awaytype: booleanholdTime:description: Requested BGP hold time, per RFC4271.type: stringkeepaliveTime:description: Requested BGP keepalive time, per RFC4271.type: stringmyASN:description: AS number to use for the local end of the session.format: int32maximum: 4294967295minimum: 0type: integernodeSelectors:description: |-Only connect to this peer on nodes that match one of theseselectors.items:properties:matchExpressions:items:properties:key:type: stringoperator:type: stringvalues:items:type: stringminItems: 1type: arrayrequired:- key- operator- valuestype: objecttype: arraymatchLabels:additionalProperties:type: stringtype: objecttype: objecttype: arraypassword:description: Authentication password for routers enforcing TCP MD5authenticated sessionstype: stringpeerASN:description: AS number to expect from the remote end of the session.format: int32maximum: 4294967295minimum: 0type: integerpeerAddress:description: Address to dial when establishing the session.type: stringpeerPort:description: Port to dial when establishing the session.maximum: 16384minimum: 0type: integerrouterID:description: BGP router ID to advertise to the peertype: stringsourceAddress:description: Source address to use when establishing the session.type: stringrequired:- myASN- peerASN- peerAddresstype: objectstatus:description: BGPPeerStatus defines the observed state of Peer.type: objecttype: objectserved: truestorage: falsesubresources:status: {}- additionalPrinterColumns:- jsonPath: .spec.peerAddressname: Addresstype: string- jsonPath: .spec.peerASNname: ASNtype: string- jsonPath: .spec.bfdProfilename: BFD Profiletype: string- jsonPath: .spec.ebgpMultiHopname: Multi Hopstype: stringname: v1beta2schema:openAPIV3Schema:description: BGPPeer is the Schema for the peers API.properties:apiVersion:description: |-APIVersion defines the versioned schema of this representation of an object.Servers should convert recognized schemas to the latest internal value, andmay reject unrecognized values.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resourcestype: stringkind:description: |-Kind is a string value representing the REST resource this object represents.Servers may infer this from the endpoint the client submits requests to.Cannot be updated.In CamelCase.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindstype: stringmetadata:type: objectspec:description: BGPPeerSpec defines the desired state of Peer.properties:bfdProfile:description: The name of the BFD Profile to be used for the BFD sessionassociated to the BGP session. If not set, the BFD session won'tbe set up.type: stringconnectTime:description: Requested BGP connect time, controls how long BGP waitsbetween connection attempts to a neighbor.type: stringx-kubernetes-validations:- message: connect time should be between 1 seconds to 65535rule: duration(self).getSeconds() >= 1 && duration(self).getSeconds()<= 65535- message: connect time should contain a whole number of secondsrule: duration(self).getMilliseconds() % 1000 == 0disableMP:default: falsedescription: To set if we want to disable MP BGP that will separateIPv4 and IPv6 route exchanges into distinct BGP sessions.type: booleanebgpMultiHop:description: To set if the BGPPeer is multi-hops away. Needed forFRR mode only.type: booleanholdTime:description: Requested BGP hold time, per RFC4271.type: stringkeepaliveTime:description: Requested BGP keepalive time, per RFC4271.type: stringmyASN:description: AS number to use for the local end of the session.format: int32maximum: 4294967295minimum: 0type: integernodeSelectors:description: |-Only connect to this peer on nodes that match one of theseselectors.items:description: |-A label selector is a label query over a set of resources. The result of matchLabels andmatchExpressions are ANDed. An empty label selector matches all objects. A nulllabel selector matches no objects.properties:matchExpressions:description: matchExpressions is a list of label selector requirements.The requirements are ANDed.items:description: |-A label selector requirement is a selector that contains values, a key, and an operator thatrelates the key and values.properties:key:description: key is the label key that the selector appliesto.type: stringoperator:description: |-operator represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists and DoesNotExist.type: stringvalues:description: |-values is an array of string values. If the operator is In or NotIn,the values array must be non-empty. If the operator is Exists or DoesNotExist,the values array must be empty. This array is replaced during a strategicmerge patch.items:type: stringtype: arrayrequired:- key- operatortype: objecttype: arraymatchLabels:additionalProperties:type: stringdescription: |-matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabelsmap is equivalent to an element of matchExpressions, whose key field is "key", theoperator is "In", and the values array contains only "value". The requirements are ANDed.type: objecttype: objectx-kubernetes-map-type: atomictype: arraypassword:description: Authentication password for routers enforcing TCP MD5authenticated sessionstype: stringpasswordSecret:description: |-passwordSecret is name of the authentication secret for BGP Peer.the secret must be of type "kubernetes.io/basic-auth", and created in thesame namespace as the MetalLB deployment. The password is stored in thesecret as the key "password".properties:name:description: name is unique within a namespace to reference asecret resource.type: stringnamespace:description: namespace defines the space within which the secretname must be unique.type: stringtype: objectx-kubernetes-map-type: atomicpeerASN:description: AS number to expect from the remote end of the session.format: int32maximum: 4294967295minimum: 0type: integerpeerAddress:description: Address to dial when establishing the session.type: stringpeerPort:default: 179description: Port to dial when establishing the session.maximum: 16384minimum: 0type: integerrouterID:description: BGP router ID to advertise to the peertype: stringsourceAddress:description: Source address to use when establishing the session.type: stringvrf:description: |-To set if we want to peer with the BGPPeer using an interface belonging toa host vrftype: stringrequired:- myASN- peerASN- peerAddresstype: objectstatus:description: BGPPeerStatus defines the observed state of Peer.type: objecttype: objectserved: truestorage: truesubresources:status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:annotations:controller-gen.kubebuilder.io/version: v0.14.0name: communities.metallb.io
spec:group: metallb.ionames:kind: CommunitylistKind: CommunityListplural: communitiessingular: communityscope: Namespacedversions:- name: v1beta1schema:openAPIV3Schema:description: |-Community is a collection of aliases for communities.Users can define named aliases to be used in the BGPPeer CRD.properties:apiVersion:description: |-APIVersion defines the versioned schema of this representation of an object.Servers should convert recognized schemas to the latest internal value, andmay reject unrecognized values.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resourcestype: stringkind:description: |-Kind is a string value representing the REST resource this object represents.Servers may infer this from the endpoint the client submits requests to.Cannot be updated.In CamelCase.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindstype: stringmetadata:type: objectspec:description: CommunitySpec defines the desired state of Community.properties:communities:items:properties:name:description: The name of the alias for the community.type: stringvalue:description: |-The BGP community value corresponding to the given name. Can be a standard community of the form 1234:1234or a large community of the form large:1234:1234:1234.type: stringtype: objecttype: arraytype: objectstatus:description: CommunityStatus defines the observed state of Community.type: objecttype: objectserved: truestorage: truesubresources:status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:annotations:controller-gen.kubebuilder.io/version: v0.14.0name: ipaddresspools.metallb.io
spec:group: metallb.ionames:kind: IPAddressPoollistKind: IPAddressPoolListplural: ipaddresspoolssingular: ipaddresspoolscope: Namespacedversions:- additionalPrinterColumns:- jsonPath: .spec.autoAssignname: Auto Assigntype: boolean- jsonPath: .spec.avoidBuggyIPsname: Avoid Buggy IPstype: boolean- jsonPath: .spec.addressesname: Addressestype: stringname: v1beta1schema:openAPIV3Schema:description: |-IPAddressPool represents a pool of IP addresses that can be allocatedto LoadBalancer services.properties:apiVersion:description: |-APIVersion defines the versioned schema of this representation of an object.Servers should convert recognized schemas to the latest internal value, andmay reject unrecognized values.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resourcestype: stringkind:description: |-Kind is a string value representing the REST resource this object represents.Servers may infer this from the endpoint the client submits requests to.Cannot be updated.In CamelCase.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindstype: stringmetadata:type: objectspec:description: IPAddressPoolSpec defines the desired state of IPAddressPool.properties:addresses:description: |-A list of IP address ranges over which MetalLB has authority.You can list multiple ranges in a single pool, they will all share thesame settings. Each range can be either a CIDR prefix, or an explicitstart-end range of IPs.items:type: stringtype: arrayautoAssign:default: truedescription: |-AutoAssign flag used to prevent MetallB from automatic allocationfor a pool.type: booleanavoidBuggyIPs:default: falsedescription: |-AvoidBuggyIPs prevents addresses ending with .0 and .255to be used by a pool.type: booleanserviceAllocation:description: |-AllocateTo makes ip pool allocation to specific namespace and/or service.The controller will use the pool with lowest value of priority in case ofmultiple matches. A pool with no priority set will be used only if thepools with priority can't be used. If multiple matching IPAddressPools areavailable it will check for the availability of IPs sorting the matchingIPAddressPools by priority, starting from the highest to the lowest. Ifmultiple IPAddressPools have the same priority, choice will be random.properties:namespaceSelectors:description: |-NamespaceSelectors list of label selectors to select namespace(s) for ip pool,an alternative to using namespace list.items:description: |-A label selector is a label query over a set of resources. The result of matchLabels andmatchExpressions are ANDed. An empty label selector matches all objects. A nulllabel selector matches no objects.properties:matchExpressions:description: matchExpressions is a list of label selectorrequirements. The requirements are ANDed.items:description: |-A label selector requirement is a selector that contains values, a key, and an operator thatrelates the key and values.properties:key:description: key is the label key that the selectorapplies to.type: stringoperator:description: |-operator represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists and DoesNotExist.type: stringvalues:description: |-values is an array of string values. If the operator is In or NotIn,the values array must be non-empty. If the operator is Exists or DoesNotExist,the values array must be empty. This array is replaced during a strategicmerge patch.items:type: stringtype: arrayrequired:- key- operatortype: objecttype: arraymatchLabels:additionalProperties:type: stringdescription: |-matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabelsmap is equivalent to an element of matchExpressions, whose key field is "key", theoperator is "In", and the values array contains only "value". The requirements are ANDed.type: objecttype: objectx-kubernetes-map-type: atomictype: arraynamespaces:description: Namespaces list of namespace(s) on which ip poolcan be attached.items:type: stringtype: arraypriority:description: Priority priority given for ip pool while ip allocationon a service.type: integerserviceSelectors:description: |-ServiceSelectors list of label selector to select service(s) for which ip poolcan be used for ip allocation.items:description: |-A label selector is a label query over a set of resources. The result of matchLabels andmatchExpressions are ANDed. An empty label selector matches all objects. A nulllabel selector matches no objects.properties:matchExpressions:description: matchExpressions is a list of label selectorrequirements. The requirements are ANDed.items:description: |-A label selector requirement is a selector that contains values, a key, and an operator thatrelates the key and values.properties:key:description: key is the label key that the selectorapplies to.type: stringoperator:description: |-operator represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists and DoesNotExist.type: stringvalues:description: |-values is an array of string values. If the operator is In or NotIn,the values array must be non-empty. If the operator is Exists or DoesNotExist,the values array must be empty. This array is replaced during a strategicmerge patch.items:type: stringtype: arrayrequired:- key- operatortype: objecttype: arraymatchLabels:additionalProperties:type: stringdescription: |-matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabelsmap is equivalent to an element of matchExpressions, whose key field is "key", theoperator is "In", and the values array contains only "value". The requirements are ANDed.type: objecttype: objectx-kubernetes-map-type: atomictype: arraytype: objectrequired:- addressestype: objectstatus:description: IPAddressPoolStatus defines the observed state of IPAddressPool.type: objectrequired:- spectype: objectserved: truestorage: truesubresources:status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:annotations:controller-gen.kubebuilder.io/version: v0.14.0name: l2advertisements.metallb.io
spec:group: metallb.ionames:kind: L2AdvertisementlistKind: L2AdvertisementListplural: l2advertisementssingular: l2advertisementscope: Namespacedversions:- additionalPrinterColumns:- jsonPath: .spec.ipAddressPoolsname: IPAddressPoolstype: string- jsonPath: .spec.ipAddressPoolSelectorsname: IPAddressPool Selectorstype: string- jsonPath: .spec.interfacesname: Interfacestype: string- jsonPath: .spec.nodeSelectorsname: Node Selectorspriority: 10type: stringname: v1beta1schema:openAPIV3Schema:description: |-L2Advertisement allows to advertise the LoadBalancer IPs providedby the selected pools via L2.properties:apiVersion:description: |-APIVersion defines the versioned schema of this representation of an object.Servers should convert recognized schemas to the latest internal value, andmay reject unrecognized values.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resourcestype: stringkind:description: |-Kind is a string value representing the REST resource this object represents.Servers may infer this from the endpoint the client submits requests to.Cannot be updated.In CamelCase.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindstype: stringmetadata:type: objectspec:description: L2AdvertisementSpec defines the desired state of L2Advertisement.properties:interfaces:description: |-A list of interfaces to announce from. The LB IP will be announced only from these interfaces.If the field is not set, we advertise from all the interfaces on the host.items:type: stringtype: arrayipAddressPoolSelectors:description: |-A selector for the IPAddressPools which would get advertised via this advertisement.If no IPAddressPool is selected by this or by the list, the advertisement is applied to all the IPAddressPools.items:description: |-A label selector is a label query over a set of resources. The result of matchLabels andmatchExpressions are ANDed. An empty label selector matches all objects. A nulllabel selector matches no objects.properties:matchExpressions:description: matchExpressions is a list of label selector requirements.The requirements are ANDed.items:description: |-A label selector requirement is a selector that contains values, a key, and an operator thatrelates the key and values.properties:key:description: key is the label key that the selector appliesto.type: stringoperator:description: |-operator represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists and DoesNotExist.type: stringvalues:description: |-values is an array of string values. If the operator is In or NotIn,the values array must be non-empty. If the operator is Exists or DoesNotExist,the values array must be empty. This array is replaced during a strategicmerge patch.items:type: stringtype: arrayrequired:- key- operatortype: objecttype: arraymatchLabels:additionalProperties:type: stringdescription: |-matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabelsmap is equivalent to an element of matchExpressions, whose key field is "key", theoperator is "In", and the values array contains only "value". The requirements are ANDed.type: objecttype: objectx-kubernetes-map-type: atomictype: arrayipAddressPools:description: The list of IPAddressPools to advertise via this advertisement,selected by name.items:type: stringtype: arraynodeSelectors:description: NodeSelectors allows to limit the nodes to announce asnext hops for the LoadBalancer IP. When empty, all the nodes having areannounced as next hops.items:description: |-A label selector is a label query over a set of resources. The result of matchLabels andmatchExpressions are ANDed. An empty label selector matches all objects. A nulllabel selector matches no objects.properties:matchExpressions:description: matchExpressions is a list of label selector requirements.The requirements are ANDed.items:description: |-A label selector requirement is a selector that contains values, a key, and an operator thatrelates the key and values.properties:key:description: key is the label key that the selector appliesto.type: stringoperator:description: |-operator represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists and DoesNotExist.type: stringvalues:description: |-values is an array of string values. If the operator is In or NotIn,the values array must be non-empty. If the operator is Exists or DoesNotExist,the values array must be empty. This array is replaced during a strategicmerge patch.items:type: stringtype: arrayrequired:- key- operatortype: objecttype: arraymatchLabels:additionalProperties:type: stringdescription: |-matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabelsmap is equivalent to an element of matchExpressions, whose key field is "key", theoperator is "In", and the values array contains only "value". The requirements are ANDed.type: objecttype: objectx-kubernetes-map-type: atomictype: arraytype: objectstatus:description: L2AdvertisementStatus defines the observed state of L2Advertisement.type: objecttype: objectserved: truestorage: truesubresources:status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:annotations:controller-gen.kubebuilder.io/version: v0.14.0name: servicel2statuses.metallb.io
spec:group: metallb.ionames:kind: ServiceL2StatuslistKind: ServiceL2StatusListplural: servicel2statusessingular: servicel2statusscope: Namespacedversions:- additionalPrinterColumns:- jsonPath: .status.nodename: Allocated Nodetype: stringname: v1beta1schema:openAPIV3Schema:description: ServiceL2Status reveals the actual traffic status of loadbalancerservices in layer2 mode.properties:apiVersion:description: |-APIVersion defines the versioned schema of this representation of an object.Servers should convert recognized schemas to the latest internal value, andmay reject unrecognized values.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resourcestype: stringkind:description: |-Kind is a string value representing the REST resource this object represents.Servers may infer this from the endpoint the client submits requests to.Cannot be updated.In CamelCase.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindstype: stringmetadata:type: objectspec:description: ServiceL2StatusSpec defines the desired state of ServiceL2Status.type: objectstatus:description: MetalLBServiceL2Status defines the observed state of ServiceL2Status.properties:interfaces:description: Interfaces indicates the interfaces that receive thedirected trafficitems:description: InterfaceInfo defines interface info of layer2 announcement.properties:name:description: Name the name of network interface cardtype: stringtype: objecttype: arraynode:description: Node indicates the node that receives the directed traffictype: stringtype: objecttype: objectserved: truestorage: truesubresources:status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:labels:app: metallbname: controllernamespace: metallb-system
---
apiVersion: v1
kind: ServiceAccount
metadata:labels:app: metallbname: speakernamespace: metallb-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:labels:app: metallbname: controllernamespace: metallb-system
rules:
- apiGroups:- ""resources:- secretsverbs:- create- delete- get- list- patch- update- watch
- apiGroups:- ""resourceNames:- memberlistresources:- secretsverbs:- list
- apiGroups:- appsresourceNames:- controllerresources:- deploymentsverbs:- get
- apiGroups:- metallb.ioresources:- bgppeersverbs:- get- list
- apiGroups:- metallb.ioresources:- bfdprofilesverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- ipaddresspoolsverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- bgpadvertisementsverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- l2advertisementsverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- communitiesverbs:- get- list- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:labels:app: metallbname: pod-listernamespace: metallb-system
rules:
- apiGroups:- ""resources:- podsverbs:- list
- apiGroups:- ""resources:- secretsverbs:- get- list- watch
- apiGroups:- ""resources:- configmapsverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- bfdprofilesverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- bgppeersverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- l2advertisementsverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- bgpadvertisementsverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- ipaddresspoolsverbs:- get- list- watch
- apiGroups:- metallb.ioresources:- communitiesverbs:- get- list- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:labels:app: metallbname: metallb-system:controller
rules:
- apiGroups:- ""resources:- services- namespacesverbs:- get- list- watch
- apiGroups:- ""resources:- nodesverbs:- list
- apiGroups:- ""resources:- services/statusverbs:- update
- apiGroups:- ""resources:- eventsverbs:- create- patch
- apiGroups:- policyresourceNames:- controllerresources:- podsecuritypoliciesverbs:- use
- apiGroups:- admissionregistration.k8s.ioresourceNames:- metallb-webhook-configurationresources:- validatingwebhookconfigurations- mutatingwebhookconfigurationsverbs:- create- delete- get- list- patch- update- watch
- apiGroups:- admissionregistration.k8s.ioresources:- validatingwebhookconfigurations- mutatingwebhookconfigurationsverbs:- list- watch
- apiGroups:- apiextensions.k8s.ioresourceNames:- bfdprofiles.metallb.io- bgpadvertisements.metallb.io- bgppeers.metallb.io- ipaddresspools.metallb.io- l2advertisements.metallb.io- communities.metallb.ioresources:- customresourcedefinitionsverbs:- create- delete- get- list- patch- update- watch
- apiGroups:- apiextensions.k8s.ioresources:- customresourcedefinitionsverbs:- list- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:labels:app: metallbname: metallb-system:speaker
rules:
- apiGroups:- metallb.ioresources:- servicel2statuses- servicel2statuses/statusverbs:- '*'
- apiGroups:- ""resources:- services- endpoints- nodes- namespacesverbs:- get- list- watch
- apiGroups:- discovery.k8s.ioresources:- endpointslicesverbs:- get- list- watch
- apiGroups:- ""resources:- eventsverbs:- create- patch
- apiGroups:- policyresourceNames:- speakerresources:- podsecuritypoliciesverbs:- use
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:labels:app: metallbname: controllernamespace: metallb-system
roleRef:apiGroup: rbac.authorization.k8s.iokind: Rolename: controller
subjects:
- kind: ServiceAccountname: controllernamespace: metallb-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:labels:app: metallbname: pod-listernamespace: metallb-system
roleRef:apiGroup: rbac.authorization.k8s.iokind: Rolename: pod-lister
subjects:
- kind: ServiceAccountname: speakernamespace: metallb-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:labels:app: metallbname: metallb-system:controller
roleRef:apiGroup: rbac.authorization.k8s.iokind: ClusterRolename: metallb-system:controller
subjects:
- kind: ServiceAccountname: controllernamespace: metallb-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:labels:app: metallbname: metallb-system:speaker
roleRef:apiGroup: rbac.authorization.k8s.iokind: ClusterRolename: metallb-system:speaker
subjects:
- kind: ServiceAccountname: speakernamespace: metallb-system
---
apiVersion: v1
data:excludel2.yaml: |announcedInterfacesToExclude: ["^docker.*", "^cbr.*", "^dummy.*", "^virbr.*", "^lxcbr.*", "^veth.*", "^lo$", "^cali.*", "^tunl.*", "^flannel.*", "^kube-ipvs.*", "^cni.*", "^nodelocaldns.*"]
kind: ConfigMap
metadata:name: metallb-excludel2namespace: metallb-system
---
apiVersion: v1
kind: Secret
metadata:name: metallb-webhook-certnamespace: metallb-system
---
apiVersion: v1
kind: Service
metadata:name: metallb-webhook-servicenamespace: metallb-system
spec:ports:- port: 443targetPort: 9443selector:component: controller
---
apiVersion: apps/v1
kind: Deployment
metadata:labels:app: metallbcomponent: controllername: controllernamespace: metallb-system
spec:revisionHistoryLimit: 3selector:matchLabels:app: metallbcomponent: controllertemplate:metadata:annotations:prometheus.io/port: "7472"prometheus.io/scrape: "true"labels:app: metallbcomponent: controllerspec:containers:- args:- --port=7472- --log-level=info- --tls-min-version=VersionTLS12env:- name: METALLB_ML_SECRET_NAMEvalue: memberlist- name: METALLB_DEPLOYMENTvalue: controllerimage: quay.io/metallb/controller:v0.14.5livenessProbe:failureThreshold: 3httpGet:path: /metricsport: monitoringinitialDelaySeconds: 10periodSeconds: 10successThreshold: 1timeoutSeconds: 1name: controllerports:- containerPort: 7472name: monitoring- containerPort: 9443name: webhook-serverprotocol: TCPreadinessProbe:failureThreshold: 3httpGet:path: /metricsport: monitoringinitialDelaySeconds: 10periodSeconds: 10successThreshold: 1timeoutSeconds: 1securityContext:allowPrivilegeEscalation: falsecapabilities:drop:- allreadOnlyRootFilesystem: truevolumeMounts:- mountPath: /tmp/k8s-webhook-server/serving-certsname: certreadOnly: truenodeSelector:kubernetes.io/os: linuxsecurityContext:fsGroup: 65534runAsNonRoot: truerunAsUser: 65534serviceAccountName: controllerterminationGracePeriodSeconds: 0volumes:- name: certsecret:defaultMode: 420secretName: metallb-webhook-cert
---
apiVersion: apps/v1
kind: DaemonSet
metadata:labels:app: metallbcomponent: speakername: speakernamespace: metallb-system
spec:selector:matchLabels:app: metallbcomponent: speakertemplate:metadata:annotations:prometheus.io/port: "7472"prometheus.io/scrape: "true"labels:app: metallbcomponent: speakerspec:containers:- args:- --port=7472- --log-level=infoenv:- name: METALLB_NODE_NAMEvalueFrom:fieldRef:fieldPath: spec.nodeName- name: METALLB_HOSTvalueFrom:fieldRef:fieldPath: status.hostIP- name: METALLB_ML_BIND_ADDRvalueFrom:fieldRef:fieldPath: status.podIP- name: METALLB_ML_LABELSvalue: app=metallb,component=speaker- name: METALLB_ML_SECRET_KEY_PATHvalue: /etc/ml_secret_keyimage: quay.io/metallb/speaker:v0.14.5livenessProbe:failureThreshold: 3httpGet:path: /metricsport: monitoringinitialDelaySeconds: 10periodSeconds: 10successThreshold: 1timeoutSeconds: 1name: speakerports:- containerPort: 7472name: monitoring- containerPort: 7946name: memberlist-tcp- containerPort: 7946name: memberlist-udpprotocol: UDPreadinessProbe:failureThreshold: 3httpGet:path: /metricsport: monitoringinitialDelaySeconds: 10periodSeconds: 10successThreshold: 1timeoutSeconds: 1securityContext:allowPrivilegeEscalation: falsecapabilities:add:- NET_RAWdrop:- ALLreadOnlyRootFilesystem: truevolumeMounts:- mountPath: /etc/ml_secret_keyname: memberlistreadOnly: true- mountPath: /etc/metallbname: metallb-excludel2readOnly: truehostNetwork: truenodeSelector:kubernetes.io/os: linuxserviceAccountName: speakerterminationGracePeriodSeconds: 2tolerations:- effect: NoSchedulekey: node-role.kubernetes.io/masteroperator: Exists- effect: NoSchedulekey: node-role.kubernetes.io/control-planeoperator: Existsvolumes:- name: memberlistsecret:defaultMode: 420secretName: memberlist- configMap:defaultMode: 256name: metallb-excludel2name: metallb-excludel2
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:creationTimestamp: nullname: metallb-webhook-configuration
webhooks:
- admissionReviewVersions:- v1clientConfig:service:name: metallb-webhook-servicenamespace: metallb-systempath: /validate-metallb-io-v1beta2-bgppeerfailurePolicy: Failname: bgppeersvalidationwebhook.metallb.iorules:- apiGroups:- metallb.ioapiVersions:- v1beta2operations:- CREATE- UPDATEresources:- bgppeerssideEffects: None
- admissionReviewVersions:- v1clientConfig:service:name: metallb-webhook-servicenamespace: metallb-systempath: /validate-metallb-io-v1beta1-bfdprofilefailurePolicy: Failname: bfdprofilevalidationwebhook.metallb.iorules:- apiGroups:- metallb.ioapiVersions:- v1beta1operations:- CREATE- DELETEresources:- bfdprofilessideEffects: None
- admissionReviewVersions:- v1clientConfig:service:name: metallb-webhook-servicenamespace: metallb-systempath: /validate-metallb-io-v1beta1-bgpadvertisementfailurePolicy: Failname: bgpadvertisementvalidationwebhook.metallb.iorules:- apiGroups:- metallb.ioapiVersions:- v1beta1operations:- CREATE- UPDATEresources:- bgpadvertisementssideEffects: None
- admissionReviewVersions:- v1clientConfig:service:name: metallb-webhook-servicenamespace: metallb-systempath: /validate-metallb-io-v1beta1-communityfailurePolicy: Failname: communityvalidationwebhook.metallb.iorules:- apiGroups:- metallb.ioapiVersions:- v1beta1operations:- CREATE- UPDATEresources:- communitiessideEffects: None
- admissionReviewVersions:- v1clientConfig:service:name: metallb-webhook-servicenamespace: metallb-systempath: /validate-metallb-io-v1beta1-ipaddresspoolfailurePolicy: Failname: ipaddresspoolvalidationwebhook.metallb.iorules:- apiGroups:- metallb.ioapiVersions:- v1beta1operations:- CREATE- UPDATEresources:- ipaddresspoolssideEffects: None
- admissionReviewVersions:- v1clientConfig:service:name: metallb-webhook-servicenamespace: metallb-systempath: /validate-metallb-io-v1beta1-l2advertisementfailurePolicy: Failname: l2advertisementvalidationwebhook.metallb.iorules:- apiGroups:- metallb.ioapiVersions:- v1beta1operations:- CREATE- UPDATEresources:- l2advertisementssideEffects: None
相关文章:
1.xshell传不了文件输出0000如何解决.....2.k8s中metalLB文件内容
xshell传不了文件输出0000如何解决 centos版本 1,因为没有工具下载即可 yum -y install lrzszk8s中metalLB文件内容 2.metalLB文件内容 cat metallb-native.yaml apiVersion: v1 kind: Namespace metadata:labels:pod-security.kubernetes.io/audit: privilegedpod-securit…...
01- ES6语法
1.ES6相关概念 1.1 什么是ES6 1.1.1 简介 ES6, 全称 ECMAScript 6.0 ,是 JavaScript 的下一个版本标准,2015.06 发版。 ES6 主要是为了解决 ES5 的先天不足,比如 JavaScript 里并没有类的概念,但是目前浏览器的 Ja…...
STM32MP135裸机编程:配置RCC,修改主频到1GHz
0 工具准备 STM32CubeMX v6.11.1 STM32CubeIDE v1.15 STM32CubeProgrammer v2.16.0 STM32MP13xx参考手册 STM32MP13勘误手册 STM32MP135AD数据手册 正点原子stm32MP135开发板 1 确认时钟源 本例使用的时钟源均由外部晶振提供,分别是24MHz的HSE、32.768KHz的LSE。原…...
观察 jvm 运行时数据区内存大小(native memory tracking)
jvm 运行时数据区 jvm 运行时数据区包括且不限于以下几个部分: 堆(heap): 用于存储对象实例和数组。堆内存的分配和释放由垃圾回收器进行管理。方法区(method area): 用于存储类的信息、静态变量、常量等。jdk 8 后方法区位于 metaspace。虚拟机栈(vm stack): 用于存储方法的…...
【论文阅读】-- 时间空间化:用于深度分类器训练的可扩展且可靠的时间旅行可视化
Temporality Spatialization: A Scalable and Faithful Time-Travelling Visualization for Deep Classifier Training 摘要1 引言2 动机3 问题定义4 方法论4.1 时空复合体4.2 复数约简 5 实验6 相关工作7 结论参考文献 摘要 时间旅行可视化回答了深度分类器的预测是如何在训练…...
Windows系统部署本地SQL_Server指引
Windows系统部署本地SQL_Server指引 此指引文档环境为Windows10系统,部署SQL_Server 2019为例,同系列系统软件安装步骤类似。 一、部署前准备; 下载好相关镜像文件;设备系统启动后,将不必要的软件停用,避…...
Aptos Builder Jam 亚洲首站|议程公布,无限畅想 Aptos 生态未来
作为一个新兴的 Layer1 公链,Aptos 自诞生之日起的理想便是 “A Layer 1 for everyone” 当 Web3 深陷熊市阴影之时,Aptos 奋力为开发者找到了全新的技术路径,正有 200 项目正在开发,并且已有大量 DeFi 项目落实部署工作ÿ…...
Vue3使用component动态展示组件
前言: 最近在研究gitHub中的一个项目并将与自己之前完成的项目进行结合,其中有一个功能就是需要使用根据不同的字段,渲染不同的组件,查阅资料发现可以使用component完成这个功能,在实现的过程中也会遇见一些坑&#x…...
嵌入式中间件_2.嵌入式中间件的分类
1.中间件的分类 中间件的范围十分广泛,针对不同的应用需求涌现出了多种各具特色的中间件产品。因此,在不同的角度或不同的层次上,对中间件的分类也会有所不同。 根据IDC在1998年对中间件进行的分类,把中间件分为终端仿真/屏幕转换…...
论文精读——KAN
目录 1.研究背景 2.关键技术 2.1 原始公式 2.2 KAN结构 2.3 缩放定律 3.技术扩展 4.模型效果 5.相关讨论 6.总结 文章标题:《KAN: Kolmogorov–Arnold Networks》 文章地址: KAN: Kolmogorov-Arnold Networks (arxiv.org)https://arxiv.org/a…...
全国产城市轨道交通运营公安AI高清视频监控系统
方案简介 城市轨道交通运营公安高清视频监控系统解决方案针对运营部门和公安部门的安保需求,选用华维视讯的各类前端和视频编解码、控制产品,通过统一平台提供视频监控服务和智能应用,满足轨道交通运营业主客运组织和抢险指挥的需求ÿ…...
python连接mysql数据库、FastAPI、mysql-connector-python
方法工具一、FastAPI 建议使用fast api中的pymysql pip3 install fastapi pip3 install pydantic pip3 install "uvicorn[standard]" pip3 中的3是 Python 3 版本的包管理器命令,用于安装和管理 Python 3 版本的第三方库。在某些系统中,同时…...
【idea】解决springboot项目中遇到的问题
一、Maven报错Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven解决及分析 报错 创建springboot项目,勾选数据库驱动,springboot版本为3,现在改成了2.7.2,Maven就发生了报错Could not find art…...
ubuntu22.04禁止自动休眠的几种方式
在Ubuntu 20.04中,您可以通过以下几种方式禁用自动休眠功能: 使用systemd设置: sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target 修改/etc/systemd/logind.conf文件: sudo nano /etc/systemd/logind.conf 找…...
智能网站管理系统
智能网站管理系统,即智能化的网站管理工具,是为了提高网站管理效率和简化操作流程而开发的一种软件系统。它集合了各种先进的技术和功能,为网站管理员提供了一套强大而可靠的解决方案。 智能网站管理系统的核心功能是网站内容管理。传统的网站…...
Android Service学习笔记
1、Service介绍 Android Service(服务)是 Android 四大组件之一,主要作用是执行后台操作。它是一个后台运行的组件,执行长时间运行且不需要用户交互的任务。即使应用被销毁也依然可以工作。 Service并不是运行在一个独立的进程当…...
amr文件怎么转换成mp3?超好用的四种转换方法介绍!
amr文件怎么转换成mp3?在当今数字化时代,音频格式的多样性给我们带来了更广泛的选择,其中AMR格式就是其中之一,AMR格式在录音和通话领域得到广泛应用,但与此同时,它也存在一些挑战和局限性,尽管…...
翻转数位00
题目链接 翻转数位 题目描述 注意点 可以将一个数位从0变为1找出能够获得的最长的一串1的长度(必须是连续的) 解答思路 参照题解使用动态规划解决本题,对于任意一个位置i,dp[i][0]表示到达且包含第i位不翻转0最长1的长度&…...
工具:安装R语言的R包的各种方法
欢迎大家关注全网生信学习者系列: WX公zhong号:生信学习者Xiao hong书:生信学习者知hu:生信学习者CDSN:生信学习者2 介绍 R语言提供的大量R包为众多研究者提供了足够的工具,但是如何安装R包是很多人在使…...
注意力机制和Transformer模型各部分功能解释
文章目录 Transformer1、各部分功能解释2、通过例子解释a.输入预处理位置编码b.Encoder 的处理c.Decoder的输入Decoder的工作流程d.输出预测总结 Attention代码和原理理解 Transformer 运行机理: (1)假设我们需要进行文本生成任务。我们将已…...
UE5 学习系列(二)用户操作界面及介绍
这篇博客是 UE5 学习系列博客的第二篇,在第一篇的基础上展开这篇内容。博客参考的 B 站视频资料和第一篇的链接如下: 【Note】:如果你已经完成安装等操作,可以只执行第一篇博客中 2. 新建一个空白游戏项目 章节操作,重…...
使用分级同态加密防御梯度泄漏
抽象 联邦学习 (FL) 支持跨分布式客户端进行协作模型训练,而无需共享原始数据,这使其成为在互联和自动驾驶汽车 (CAV) 等领域保护隐私的机器学习的一种很有前途的方法。然而,最近的研究表明&…...
条件运算符
C中的三目运算符(也称条件运算符,英文:ternary operator)是一种简洁的条件选择语句,语法如下: 条件表达式 ? 表达式1 : 表达式2• 如果“条件表达式”为true,则整个表达式的结果为“表达式1”…...
DBAPI如何优雅的获取单条数据
API如何优雅的获取单条数据 案例一 对于查询类API,查询的是单条数据,比如根据主键ID查询用户信息,sql如下: select id, name, age from user where id #{id}API默认返回的数据格式是多条的,如下: {&qu…...
2025季度云服务器排行榜
在全球云服务器市场,各厂商的排名和地位并非一成不变,而是由其独特的优势、战略布局和市场适应性共同决定的。以下是根据2025年市场趋势,对主要云服务器厂商在排行榜中占据重要位置的原因和优势进行深度分析: 一、全球“三巨头”…...
【生成模型】视频生成论文调研
工作清单 上游应用方向:控制、速度、时长、高动态、多主体驱动 类型工作基础模型WAN / WAN-VACE / HunyuanVideo控制条件轨迹控制ATI~镜头控制ReCamMaster~多主体驱动Phantom~音频驱动Let Them Talk: Audio-Driven Multi-Person Conversational Video Generation速…...
三分算法与DeepSeek辅助证明是单峰函数
前置 单峰函数有唯一的最大值,最大值左侧的数值严格单调递增,最大值右侧的数值严格单调递减。 单谷函数有唯一的最小值,最小值左侧的数值严格单调递减,最小值右侧的数值严格单调递增。 三分的本质 三分和二分一样都是通过不断缩…...
适应性Java用于现代 API:REST、GraphQL 和事件驱动
在快速发展的软件开发领域,REST、GraphQL 和事件驱动架构等新的 API 标准对于构建可扩展、高效的系统至关重要。Java 在现代 API 方面以其在企业应用中的稳定性而闻名,不断适应这些现代范式的需求。随着不断发展的生态系统,Java 在现代 API 方…...
【p2p、分布式,区块链笔记 MESH】Bluetooth蓝牙通信 BLE Mesh协议的拓扑结构 定向转发机制
目录 节点的功能承载层(GATT/Adv)局限性: 拓扑关系定向转发机制定向转发意义 CG 节点的功能 节点的功能由节点支持的特性和功能决定。所有节点都能够发送和接收网格消息。节点还可以选择支持一个或多个附加功能,如 Configuration …...
十九、【用户管理与权限 - 篇一】后端基础:用户列表与角色模型的初步构建
【用户管理与权限 - 篇一】后端基础:用户列表与角色模型的初步构建 前言准备工作第一部分:回顾 Django 内置的 `User` 模型第二部分:设计并创建 `Role` 和 `UserProfile` 模型第三部分:创建 Serializers第四部分:创建 ViewSets第五部分:注册 API 路由第六部分:后端初步测…...
