| Initial commit | 1 | apiVersion: v1 |
| 2 | kind: Service | |
| 3 | metadata: | |
| Change names | 4 | name: myapp-service |
| Initial commit | 5 | spec: |
| 6 | selector: | |
| 7 | app: myapp | |
| 8 | ports: | |
| 9 | - port: 8080 | |
| 10 | protocol: TCP | |
| 11 | targetPort: 8080 | |
| 12 |
| Initial commit | 1 | apiVersion: v1 |
| 2 | kind: Service | |
| 3 | metadata: | |
| Change names | 4 | name: myapp-service |
| Initial commit | 5 | spec: |
| 6 | selector: | |
| 7 | app: myapp | |
| 8 | ports: | |
| 9 | - port: 8080 | |
| 10 | protocol: TCP | |
| 11 | targetPort: 8080 | |
| 12 |