resources

package
v0.0.0-...-c938c57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = &kubeclient.SpecGroup{
	Services: []*apicorev1.Service{
		{
			ObjectMeta: metav1.ObjectMeta{
				Name:      "registry",
				Namespace: "kube-system",
				Labels: map[string]string{
					"role": "registry",
				},
			},
			Spec: apicorev1.ServiceSpec{
				Type: "LoadBalancer",
				Ports: []apicorev1.ServicePort{
					{
						Port: 5000,
						TargetPort: intstr.IntOrString{
							Type:   0,
							IntVal: 5000,
						},
					},
				},
				Selector: map[string]string{
					"role": "registry",
				},
			},
		},
	},
	Deployments: []*appsv1beta1.Deployment{
		{
			ObjectMeta: metav1.ObjectMeta{
				Name:      "registry",
				Namespace: "kube-system",
				Labels: map[string]string{
					"role": "registry",
				},
			},
			Spec: appsv1beta1.DeploymentSpec{
				Replicas: pointer.Int32Ptr(1),
				Template: apicorev1.PodTemplateSpec{
					ObjectMeta: metav1.ObjectMeta{
						Labels: map[string]string{
							"role": "registry",
						},
					},
					Spec: apicorev1.PodSpec{
						Containers: []apicorev1.Container{
							{
								Name:  "registry",
								Image: "registry:2.6.1",
								Ports: []apicorev1.ContainerPort{
									{
										Protocol:      apicorev1.ProtocolTCP,
										ContainerPort: 80,
									},
								},
							},
						},
					},
				},
			},
		},
	},
}

Registry resource group represents a container registry which is exposed using a LoadBalancer service.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL