
Kubernetes no longer uses 'kubecfg', but rather 'kubectl'. Therefore, the way that pods and services are being created needs to be changed. In order to create a pod, the parameter 'kind' needs to be set to 'pod' in the yaml file and the api version specified. The stop script now reads from k8s/{pod,service,replication}/ in order to stop all the started pods, services, and replication controllers. Change-Id: Ibd39fa402e9df883df83272c3aefbb69009dfbd2
22 lines
409 B
YAML
22 lines
409 B
YAML
apiVersion: v1beta1
|
|
kind: Pod
|
|
desiredState:
|
|
manifest:
|
|
volumes:
|
|
- name: mongodb-data
|
|
source:
|
|
emptyDir: {}
|
|
containers:
|
|
image: kollaglue/fedora-rdo-mongodb
|
|
name: mongodb
|
|
ports:
|
|
- containerPort: 27017
|
|
volumeMounts:
|
|
- name: mongodb-data
|
|
mountPath: /data/db
|
|
id: mongodb-1
|
|
version: v1beta1
|
|
id: mongodb
|
|
labels:
|
|
name: mongodb
|