当前位置: 首页 > news >正文

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&#xff0c; 全称 ECMAScript 6.0 &#xff0c;是 JavaScript 的下一个版本标准&#xff0c;2015.06 发版。 ES6 主要是为了解决 ES5 的先天不足&#xff0c;比如 JavaScript 里并没有类的概念&#xff0c;但是目前浏览器的 Ja…...

STM32MP135裸机编程:配置RCC,修改主频到1GHz

0 工具准备 STM32CubeMX v6.11.1 STM32CubeIDE v1.15 STM32CubeProgrammer v2.16.0 STM32MP13xx参考手册 STM32MP13勘误手册 STM32MP135AD数据手册 正点原子stm32MP135开发板 1 确认时钟源 本例使用的时钟源均由外部晶振提供&#xff0c;分别是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系统&#xff0c;部署SQL_Server 2019为例&#xff0c;同系列系统软件安装步骤类似。 一、部署前准备&#xff1b; 下载好相关镜像文件&#xff1b;设备系统启动后&#xff0c;将不必要的软件停用&#xff0c;避…...

Aptos Builder Jam 亚洲首站|议程公布,无限畅想 Aptos 生态未来

作为一个新兴的 Layer1 公链&#xff0c;Aptos 自诞生之日起的理想便是 “A Layer 1 for everyone” 当 Web3 深陷熊市阴影之时&#xff0c;Aptos 奋力为开发者找到了全新的技术路径&#xff0c;正有 200 项目正在开发&#xff0c;并且已有大量 DeFi 项目落实部署工作&#xff…...

Vue3使用component动态展示组件

前言&#xff1a; 最近在研究gitHub中的一个项目并将与自己之前完成的项目进行结合&#xff0c;其中有一个功能就是需要使用根据不同的字段&#xff0c;渲染不同的组件&#xff0c;查阅资料发现可以使用component完成这个功能&#xff0c;在实现的过程中也会遇见一些坑&#x…...

嵌入式中间件_2.嵌入式中间件的分类

1.中间件的分类 中间件的范围十分广泛&#xff0c;针对不同的应用需求涌现出了多种各具特色的中间件产品。因此&#xff0c;在不同的角度或不同的层次上&#xff0c;对中间件的分类也会有所不同。 根据IDC在1998年对中间件进行的分类&#xff0c;把中间件分为终端仿真/屏幕转换…...

论文精读——KAN

目录 1.研究背景 2.关键技术 2.1 原始公式 2.2 KAN结构 2.3 缩放定律 3.技术扩展 4.模型效果 5.相关讨论 6.总结 文章标题&#xff1a;《KAN: Kolmogorov–Arnold Networks》 文章地址&#xff1a; KAN: Kolmogorov-Arnold Networks (arxiv.org)https://arxiv.org/a…...

全国产城市轨道交通运营公安AI高清视频监控系统

方案简介 城市轨道交通运营公安高清视频监控系统解决方案针对运营部门和公安部门的安保需求&#xff0c;选用华维视讯的各类前端和视频编解码、控制产品&#xff0c;通过统一平台提供视频监控服务和智能应用&#xff0c;满足轨道交通运营业主客运组织和抢险指挥的需求&#xff…...

python连接mysql数据库、FastAPI、mysql-connector-python

方法工具一、FastAPI 建议使用fast api中的pymysql pip3 install fastapi pip3 install pydantic pip3 install "uvicorn[standard]" pip3 中的3是 Python 3 版本的包管理器命令&#xff0c;用于安装和管理 Python 3 版本的第三方库。在某些系统中&#xff0c;同时…...

【idea】解决springboot项目中遇到的问题

一、Maven报错Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven解决及分析 报错 创建springboot项目&#xff0c;勾选数据库驱动&#xff0c;springboot版本为3&#xff0c;现在改成了2.7.2&#xff0c;Maven就发生了报错Could not find art…...

ubuntu22.04禁止自动休眠的几种方式

在Ubuntu 20.04中&#xff0c;您可以通过以下几种方式禁用自动休眠功能&#xff1a; 使用systemd设置: sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target 修改/etc/systemd/logind.conf文件: sudo nano /etc/systemd/logind.conf 找…...

智能网站管理系统

智能网站管理系统&#xff0c;即智能化的网站管理工具&#xff0c;是为了提高网站管理效率和简化操作流程而开发的一种软件系统。它集合了各种先进的技术和功能&#xff0c;为网站管理员提供了一套强大而可靠的解决方案。 智能网站管理系统的核心功能是网站内容管理。传统的网站…...

Android Service学习笔记

1、Service介绍 Android Service&#xff08;服务&#xff09;是 Android 四大组件之一&#xff0c;主要作用是执行后台操作。它是一个后台运行的组件&#xff0c;执行长时间运行且不需要用户交互的任务。即使应用被销毁也依然可以工作。 Service并不是运行在一个独立的进程当…...

amr文件怎么转换成mp3?超好用的四种转换方法介绍!

amr文件怎么转换成mp3&#xff1f;在当今数字化时代&#xff0c;音频格式的多样性给我们带来了更广泛的选择&#xff0c;其中AMR格式就是其中之一&#xff0c;AMR格式在录音和通话领域得到广泛应用&#xff0c;但与此同时&#xff0c;它也存在一些挑战和局限性&#xff0c;尽管…...

翻转数位00

题目链接 翻转数位 题目描述 注意点 可以将一个数位从0变为1找出能够获得的最长的一串1的长度&#xff08;必须是连续的&#xff09; 解答思路 参照题解使用动态规划解决本题&#xff0c;对于任意一个位置i&#xff0c;dp[i][0]表示到达且包含第i位不翻转0最长1的长度&…...

工具:安装R语言的R包的各种方法

欢迎大家关注全网生信学习者系列&#xff1a; WX公zhong号&#xff1a;生信学习者Xiao hong书&#xff1a;生信学习者知hu&#xff1a;生信学习者CDSN&#xff1a;生信学习者2 介绍 R语言提供的大量R包为众多研究者提供了足够的工具&#xff0c;但是如何安装R包是很多人在使…...

注意力机制和Transformer模型各部分功能解释

文章目录 Transformer1、各部分功能解释2、通过例子解释a.输入预处理位置编码b.Encoder 的处理c.Decoder的输入Decoder的工作流程d.输出预测总结 Attention代码和原理理解 Transformer 运行机理&#xff1a; &#xff08;1&#xff09;假设我们需要进行文本生成任务。我们将已…...

《用户共鸣指数(E)驱动品牌大模型种草:如何抢占大模型搜索结果情感高地》

在注意力分散、内容高度同质化的时代&#xff0c;情感连接已成为品牌破圈的关键通道。我们在服务大量品牌客户的过程中发现&#xff0c;消费者对内容的“有感”程度&#xff0c;正日益成为影响品牌传播效率与转化率的核心变量。在生成式AI驱动的内容生成与推荐环境中&#xff0…...

从零实现STL哈希容器:unordered_map/unordered_set封装详解

本篇文章是对C学习的STL哈希容器自主实现部分的学习分享 希望也能为你带来些帮助~ 那咱们废话不多说&#xff0c;直接开始吧&#xff01; 一、源码结构分析 1. SGISTL30实现剖析 // hash_set核心结构 template <class Value, class HashFcn, ...> class hash_set {ty…...

浅谈不同二分算法的查找情况

二分算法原理比较简单&#xff0c;但是实际的算法模板却有很多&#xff0c;这一切都源于二分查找问题中的复杂情况和二分算法的边界处理&#xff0c;以下是博主对一些二分算法查找的情况分析。 需要说明的是&#xff0c;以下二分算法都是基于有序序列为升序有序的情况&#xf…...

第 86 场周赛:矩阵中的幻方、钥匙和房间、将数组拆分成斐波那契序列、猜猜这个单词

Q1、[中等] 矩阵中的幻方 1、题目描述 3 x 3 的幻方是一个填充有 从 1 到 9 的不同数字的 3 x 3 矩阵&#xff0c;其中每行&#xff0c;每列以及两条对角线上的各数之和都相等。 给定一个由整数组成的row x col 的 grid&#xff0c;其中有多少个 3 3 的 “幻方” 子矩阵&am…...

HDFS分布式存储 zookeeper

hadoop介绍 狭义上hadoop是指apache的一款开源软件 用java语言实现开源框架&#xff0c;允许使用简单的变成模型跨计算机对大型集群进行分布式处理&#xff08;1.海量的数据存储 2.海量数据的计算&#xff09;Hadoop核心组件 hdfs&#xff08;分布式文件存储系统&#xff09;&a…...

Chromium 136 编译指南 Windows篇:depot_tools 配置与源码获取(二)

引言 工欲善其事&#xff0c;必先利其器。在完成了 Visual Studio 2022 和 Windows SDK 的安装后&#xff0c;我们即将接触到 Chromium 开发生态中最核心的工具——depot_tools。这个由 Google 精心打造的工具集&#xff0c;就像是连接开发者与 Chromium 庞大代码库的智能桥梁…...

苹果AI眼镜:从“工具”到“社交姿态”的范式革命——重新定义AI交互入口的未来机会

在2025年的AI硬件浪潮中,苹果AI眼镜(Apple Glasses)正在引发一场关于“人机交互形态”的深度思考。它并非简单地替代AirPods或Apple Watch,而是开辟了一个全新的、日常可接受的AI入口。其核心价值不在于功能的堆叠,而在于如何通过形态设计打破社交壁垒,成为用户“全天佩戴…...

【WebSocket】SpringBoot项目中使用WebSocket

1. 导入坐标 如果springboot父工程没有加入websocket的起步依赖&#xff0c;添加它的坐标的时候需要带上版本号。 <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-websocket</artifactId> </dep…...

WebRTC调研

WebRTC是什么&#xff0c;为什么&#xff0c;如何使用 WebRTC有什么优势 WebRTC Architecture Amazon KVS WebRTC 其它厂商WebRTC 海康门禁WebRTC 海康门禁其他界面整理 威视通WebRTC 局域网 Google浏览器 Microsoft Edge 公网 RTSP RTMP NVR ONVIF SIP SRT WebRTC协…...

k8s从入门到放弃之Pod的容器探针检测

k8s从入门到放弃之Pod的容器探针检测 在Kubernetes&#xff08;简称K8s&#xff09;中&#xff0c;容器探测是指kubelet对容器执行定期诊断的过程&#xff0c;以确保容器中的应用程序处于预期的状态。这些探测是保障应用健康和高可用性的重要机制。Kubernetes提供了两种种类型…...