Last active
January 3, 2019 22:10
-
-
Save rgolangh/b8eb941ece1d7b494b232a80aabfb2d6 to your computer and use it in GitHub Desktop.
Deployment on kubernetes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
data: | |
connection: | | |
url=https://ovirt-engine-fqdn/ovirt-engine/api | |
username=admin@internal | |
password=123 | |
insecure=True | |
cafile= | |
kind: ConfigMap | |
metadata: | |
creationTimestamp: null | |
name: ovirt | |
selfLink: /api/v1/namespaces/default/configmaps/ovirt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
creationTimestamp: null | |
generation: 1 | |
name: ovirt-flexvolume-driver | |
selfLink: /apis/extensions/v1beta1/namespaces/default/daemonsets/ovirt-flexvolume-driver | |
spec: | |
revisionHistoryLimit: 10 | |
selector: | |
matchLabels: | |
name: ovirt-flexvolume-driver | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
name: ovirt-flexvolume-driver | |
spec: | |
containers: | |
- env: | |
- name: OVIRT_VM_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: spec.nodeName | |
image: quay.io/rgolangh/ovirt-flexvolume-driver | |
imagePullPolicy: Always | |
name: ovirt-flexvolume-driver | |
resources: | |
limits: | |
memory: 200Mi | |
requests: | |
cpu: 100m | |
memory: 200Mi | |
securityContext: | |
privileged: true | |
procMount: Default | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
volumeMounts: | |
- mountPath: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ | |
name: plugindir | |
- mountPath: /opt/ovirt-flexvolume-driver | |
name: config-volume | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
tolerations: | |
- effect: NoSchedule | |
key: node-role.kubernetes.io/master | |
volumes: | |
- hostPath: | |
path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ | |
type: "" | |
name: plugindir | |
- configMap: | |
defaultMode: 420 | |
items: | |
- key: connection | |
path: ovirt-flexvolume-driver.conf | |
name: ovirt | |
name: config-volume | |
templateGeneration: 1 | |
updateStrategy: | |
rollingUpdate: | |
maxUnavailable: 1 | |
type: RollingUpdate | |
status: | |
currentNumberScheduled: 0 | |
desiredNumberScheduled: 0 | |
numberMisscheduled: 0 | |
numberReady: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "4" | |
creationTimestamp: null | |
generation: 1 | |
labels: | |
name: ovirt-volume-provisioner | |
name: ovirt-volume-provisioner | |
selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/ovirt-volume-provisioner | |
spec: | |
progressDeadlineSeconds: 600 | |
replicas: 1 | |
revisionHistoryLimit: 10 | |
selector: | |
matchLabels: | |
name: ovirt-volume-provisioner | |
strategy: | |
rollingUpdate: | |
maxSurge: 25% | |
maxUnavailable: 25% | |
type: RollingUpdate | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
name: ovirt-volume-provisioner | |
spec: | |
containers: | |
- env: | |
- name: OVIRT_API_CONF | |
value: /etc/ovirt/ovirt-api.conf | |
image: quay.io/rgolangh/ovirt-volume-provisioner | |
imagePullPolicy: Always | |
name: ovirt-volume-provisioner | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
volumeMounts: | |
- mountPath: /etc/ovirt | |
name: config-volume | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
serviceAccount: ovirt-volume-provisioner | |
serviceAccountName: ovirt-volume-provisioner | |
terminationGracePeriodSeconds: 30 | |
volumes: | |
- configMap: | |
defaultMode: 420 | |
items: | |
- key: connection | |
path: ovirt-api.conf | |
name: ovirt | |
name: config-volume | |
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: ovirt-volume-provisioner | |
namespace: default | |
rules: | |
- apiGroups: [""] | |
resources: ["persistentvolumes"] | |
verbs: ["get", "list", "watch", "create", "delete"] | |
- apiGroups: [""] | |
resources: ["persistentvolumeclaims"] | |
verbs: ["get", "list", "watch", "update"] | |
- apiGroups: ["storage.k8s.io"] | |
resources: ["storageclasses"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: [""] | |
resources: ["events"] | |
verbs: ["list", "watch", "create", "update", "patch"] | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: ovirt-volume-provisioner | |
namespace: default | |
subjects: | |
- kind: ServiceAccount | |
name: ovirt-volume-provisioner | |
namespace: default | |
roleRef: | |
kind: ClusterRole | |
name: ovirt-volume-provisioner | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: ovirt-volume-provisioner | |
namespace: default | |
rules: | |
- apiGroups: [""] | |
resources: ["secrets"] | |
verbs: ["create", "get", "delete"] | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: RoleBinding | |
metadata: | |
name: ovirt-volume-provisioner | |
namespace: default | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: Role | |
name: ovirt-volume-provisioner | |
subjects: | |
- kind: ServiceAccount | |
name: ovirt-volume-provisioner | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: ovirt-volume-provisioner | |
namespace: default | |
--- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment