19 lines
281 B
YAML
19 lines
281 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
annotations:
|
||
|
labels:
|
||
|
app: redis
|
||
|
name: redis
|
||
|
namespace: customer
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: redis
|
||
|
nodePort: 30379
|
||
|
port: 6379
|
||
|
targetPort: redis
|
||
|
selector:
|
||
|
app: redis
|
||
|
app.kubernetes.io/name: redis
|
||
|
type: NodePort
|