apiVersion: v1 | |
kind: Service | |
metadata: | |
name: rapp-man | |
namespace: nonrtric | |
labels: | |
run: rapp-man | |
spec: | |
type: NodePort | |
ports: | |
- port: 9970 | |
targetPort: 9970 | |
protocol: TCP | |
name: http | |
nodePort: | |
- port: 9971 | |
targetPort: 9971 | |
protocol: TCP | |
name: https | |
nodePort: | |
selector: | |
run: rapp-man | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: rapp-man | |
namespace: nonrtric | |
labels: | |
run: rapp-man | |
spec: | |
volumes: | |
- name: shared-data | |
emptyDir: {} | |
containers: | |
- name: rapp-man | |
image: rappman:latest | |
imagePullPolicy: Never | |
ports: | |
- name: http | |
containerPort: 9970 | |
- name: https | |
containerPort: 9971 | |
volumeMounts: | |
- name: shared-data | |
mountPath: /usr/share/nginx/html | |
dnsPolicy: Default |