kubernetes-installation/sample/private-pod.yaml

29 lines
441 B
YAML
Raw Normal View History

2021-10-22 10:52:40 +07:00
apiVersion: v1
kind: Pod
metadata:
name: myapp
spec:
containers:
- name: myapp
image: registry.kh.cubetiqs.com/myapp
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: myapp
namespace: default
labels:
app: myapp
spec:
externalTrafficPolicy: Local
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: myapp
type: LoadBalancer