Loading kubernetes.yml +56 −42 Original line number Diff line number Diff line Loading @@ -10,12 +10,21 @@ spec: requests: storage: 16Gi --- apiVersion: v1 kind: Pod apiVersion: apps/v1 kind: Deployment metadata: name: dsm labels: name: dsm spec: replicas: 1 selector: matchLabels: app: dsm template: metadata: labels: app: dsm spec: containers: - name: dsm Loading @@ -29,6 +38,8 @@ spec: value: "16G" ports: - containerPort: 5000 name: http protocol: TCP securityContext: capabilities: add: Loading Loading @@ -59,9 +70,12 @@ kind: Service metadata: name: dsm spec: internalTrafficPolicy: Cluster ports: - name: tcp-5000 - name: http port: 5000 protocol: TCP targetPort: 5000 selector: name: dsm type: NodePort app: dsm type: ClusterIP Loading
kubernetes.yml +56 −42 Original line number Diff line number Diff line Loading @@ -10,12 +10,21 @@ spec: requests: storage: 16Gi --- apiVersion: v1 kind: Pod apiVersion: apps/v1 kind: Deployment metadata: name: dsm labels: name: dsm spec: replicas: 1 selector: matchLabels: app: dsm template: metadata: labels: app: dsm spec: containers: - name: dsm Loading @@ -29,6 +38,8 @@ spec: value: "16G" ports: - containerPort: 5000 name: http protocol: TCP securityContext: capabilities: add: Loading Loading @@ -59,9 +70,12 @@ kind: Service metadata: name: dsm spec: internalTrafficPolicy: Cluster ports: - name: tcp-5000 - name: http port: 5000 protocol: TCP targetPort: 5000 selector: name: dsm type: NodePort app: dsm type: ClusterIP