kubernetes-installation/sample/private-pod.yaml

29 lines
441 B
YAML

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