## Create a Service

### To create a Service of LoadBalancer, just replace MYSECRET with your custom SecretName.

```
apiVersion: v1
kind: Service
metadata: 
  name: DezaiCloud-nginx
  labels:
    app: DezaiCloud-nginx
spec: 
  type: LoadBalancer
  ports: 
    - protocol: TCP
      port: 80
  selector:
    app: DezaiCloud-nginx
---
apiVersion: v1
kind: Pod
metadata:
  name: test-nginx
  labels:
    app: DezaiCloud-nginx
spec:
  containers:
  - name: nginx
    image: uhub.dezai.com/ucloud/nginx:1.9.2
    ports:
    - containerPort: 80
  imagePullSecrets:
    - name: MYSECRET
```

The system will automatically generate a ULB, and UK8S also supports configuring various parameters of the ULB. For details, see [service](/docs/uk8s/service/service/annotations)
