Şöyle yaparız
Açıklaması şöyleapiVersion: v1kind: Pod # 1metadata:name: sa-frontend # 2spec: # 3containers:- image: rinormaloku/sentiment-analysis-frontend # 4name: sa-frontend # 5ports:- containerPort: 80 # 6
1. Kind: specifies the kind of the Kubernetes Resource that we want to create. In our case, a Pod.2. Name: defines the name for the resource. We named it sa-frontend.3. Spec is the object that defines the desired state for the resource. The most important property of a Pods Spec is the Array of containers.4. Image is the container image we want to start in this pod.5. Name is the unique name for a container in a pod.6. Container Port:is the port at which the container is listening. This is just an indicator for the reader (dropping the port doesn’t restrict access).
Hiç yorum yok:
Yorum Gönder