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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/851449.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

OSPF LSA头部详解

LSA概述 LSA是OSPF的本质 , 对于网工来说能否完成OSPF的排错就是基于OSPF的LSDB掌握程度 . 其中1/2类LAS是负责区域内部的 类似于设备的直连路由 . 加上对端的设备信息 3 类LSA是区域间的 指的是Area0和其他Area的区域间关系 , 设计多区域的初衷就是避免大型OSPF环境LSA太多…

Go模板页面浏览器显示HTML源码问题

<!--* Title: This is a file for ……* Author: JackieZheng* Date: 2024-06-09 17:00:01* LastEditTime: 2024-06-09 17:01:12* LastEditors: Please set LastEditors* Description:* FilePath: \\GoCode\\templates\\index.html --> <!DOCTYPE html> <html …

【RAG】浅尝基于多头注意力机制思想设计的Multi-Head RAG(多头RAG)

一、动机 现有RAG设计和评估方法&#xff0c;没有方案或评估方法明确针对具有多方面性的问题。下面解释一下多方面性的问题&#xff1a; "多方面性的问题"是指那些需要理解和整合多个不同领域或主题的知识和信息才能得到完整和准确回答的问题。这类问题的特点在于它…

Characters 2 01(卡通可爱人物动画模型)

● 包裹● - 26名男子; - 29个女孩。 ● 使用地点 ● - 游戏。针对游戏引擎优化的模型; -乘法; 广告和营销; - 虚拟现实/增强现实。 ● 特点 ● - 你可以很容易地改变物体的颜色 - 使用UV贴图; - 对象逻辑位置的枢轴; - 模型具有逻辑名称。 ● 几何学● 62个独特的资产(…

Objective-C 学习笔记 | Block 对象

Objective-C 学习笔记 | Block 对象 Objective-C 学习笔记 | Block 对象编写并使用 Block 对象Block 对象的返回值匿名 Block 对象外部变量在 Block 对象中使用 self在 Block 对象中无意使用 self修改外部变量 Objective-C 学习笔记 | Block 对象 Block 对象类似于匿名函数&am…

【代码随想录训练营】【Day 49】【动态规划-8】| Leetcode 139

【代码随想录训练营】【Day 49】【动态规划-8】| Leetcode 139 需强化知识点 多重背包&#xff1a;将其展开为01背包 题目 139. 单词拆分 注意 要保证 单词构成的有序性&#xff0c;先遍历背包&#xff0c;再遍历物品回溯法 class Solution:def wordBreak(self, s: str, …

面对层出不穷的大模型产品,该怎么选呢

层出不穷的大模型产品&#xff0c;你怎么选&#xff1f; 随着近日腾讯元宝APP的正式上线&#xff0c;国内大模型产品又添一员。关于接连出现的“全能“大模型AIGC产品&#xff0c;你都用过哪些呢&#xff1f;不妨来分享一下你的使用体验吧&#xff01;在这些大模型产品中&…

xLua(一) 环境安装笔记

为了方便查阅记录一下xLua的安装地址及方法 1.登录地址下载: https://github.com/Tencent/xLua 2.解压文件 将文件中的这些内容拷贝到项目中的Asset文件夹中 注意 : 工程项目路径不得含有中文 3.将Tools复制到Asset同级目录下 4.导入后会发现有Bug,需要导入工程 5.还有另…

Java:九九乘法表,打印三角形

文章目录 九九乘法表打印三角形改进:控制行数的三角形有空格的三角形 九九乘法表 package com.zhang; /* 打印九九乘法表*/ public class Test8 {public static void main(String[] args) {//i是竖着的 j是横着的for (int i 1; i < 9; i) {for(int j 1; j < 9; j) {i…

IP协议(二)

TOC 一: 网段划分 同一个局域网的主机,要按一定的规则分配IP地址 把一个IP地址分为两部分: 前半部分 ,网络号 >用来表示局域网后半部分,主机号 > 用来区分同一个局域网中的不同主机 同一个局域网内部&#xff0c;主机之间的IP &#xff0c; 网络号相同&#xff0c;主…

JS笔记(自用)

1、js输出&#xff1a;console.log("hellowworld"); 2、变量定义&#xff1a;var&#xff0c;变量名区分大小写 3、数据类型&#xff1a; 基本数据类型&#xff1a;number&#xff08;整数浮点数&#xff0c;NaN非数&#xff0c;正负无穷大&#xff09;。boolean。…

Python 虚拟环境 + 嵌入式 + 编译pyd 部署方案

Python 虚拟环境 嵌入式 编译pyd 部署方案 开发阶段 - 直接发源码版本1. 在虚拟环境下开发 Python 项目 部署阶段1. 创建项目文件夹2. 准备嵌入器 Python 解释器3. 处理第三方库4. 修改 ._pth 文件添加 Python 运行环境5. 添加启动 bat 脚本 目录结构开发阶段 - 编译 pyd 再发…

vue-router的导入和使用

关于如何在 Vue.js 中导入和使用 vue-router 的基本例子。 首先&#xff0c;确保你已经安装了 vue-router。你可以通过 npm 或 yarn 来安装&#xff1a; npm install vue-router # 或者 yarn add vue-router 然后&#xff0c;在你的 Vue 项目中&#xff0c;你可以按照以下…

FuTalk设计周刊-Vol.039

&#x1f525;AI漫谈 热点捕手 1、AI视频生成工具大PK | Runway Gen-2、Pika、Moonvalley和W.A.L.T的文字生视频对比评测 AI届的学术大牛李飞飞最近推出了用于生成逼真视频的扩散模型W.A.L.T。效果很不错&#xff0c;不过目前还未开放公网的访问。于是我萌生了一个想法&#…

气体流量的换算

测量气体流量时&#xff0c;往往需要进行温压补偿。我们可以选择Nm:/h和m3/h作为测量单位&#xff0c;二者之间如何换算呢?在标准状态下&#xff0c;即温度为0℃℃(273.15K)和压力为1个标准大气压(101.325kPa)时&#xff0c;气体的体积被称为Nm3(标方)&#xff0c;N代表标准条…

音视频主要概念

文章目录 常用的一些概念主要概念1主要概念2I帧P帧B帧 常用视频压缩算法 小结 常用的一些概念 主要概念1 视频码率&#xff1a;kb/s&#xff0c;是指视频文件在单位时间内使用的数据流量&#xff0c;也叫码流率。码率越大&#xff0c;说明单位时间内取样率越大&#xff0c;数…

rust asyn和await pin unpin加精!!!

15-探讨为什么Pin在Rust异步编程中如此重要 | Databend_哔哩哔哩_bilibili 能不能Pin住&#xff0c;取决于T是否实现了Unpin&#xff0c;如果实现了Unpin&#xff0c;那么Pin不住 Pin不能pin住u32等基础变量 编译器为async和await生成结构体实现了!Unpin 结构体中使用引用要…

智能合约中Gas限制和DoS攻击漏洞

Gas限制和DoS攻击 Gas限制和DoS&#xff08;Denial of Service&#xff0c;拒绝服务&#xff09;攻击是在区块链和智能合约环境下常见的安全威胁&#xff0c;尤其是对于像以太坊这样的平台&#xff0c;其中Gas是一种用于衡量执行智能合约成本的单位。Gas机制设计的初衷是为了防…

62- 读写文件详解

一 读写文本文件(QFile 类) Qt 开发中的 QFile 类支持对文件进行读取、写入、删除、复制 重命名等相关操作,它既可以操作文本文件,也可以操作二进制文件。 #include <QCoreApplication> #include <QFile> #include <QDebug> int main(int argc, char *argv…

Java 18新特性全览:探索Java世界的最新进化!

随着技术的不断演进&#xff0c;Java作为历史悠久的编程语言&#xff0c;始终保持着其时代的前沿性。Java 18的发布&#xff0c;又一次展示了这门语言的强大生命力和不断创新的能力。在本文中&#xff0c;我们将深入探讨Java 18带来的那些令人兴奋的新特性&#xff0c;助你领略…