1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
apiVersion: v1 kind: Service metadata: name: puppy namespace: tcmal spec: ports: - name: http port: 80 protocol: TCP targetPort: 80 --- apiVersion: v1 kind: Endpoints metadata: name: puppy namespace: tcmal subsets: - addresses: - ip: 192.168.1.248 ports: - name: http port: 80 protocol: TCP