Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

deploy Apche Nifi in GKE

Highlighted

deploy Apche Nifi in GKE

New Contributor

Hi all, I am trying to deploy Apache nifi in GKE,

However I meet this issue

chmod: changing permissions of '/opt/nifi/nifi-current/conf': Operation not permitted

chmod: changing permissions of '/opt/nifi/nifi-current/conf/lost+found': Operation not permitted


my yalm file is


---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nificlaimapachenifi
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 30Gi
---
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
name: "apachenifi"
namespace: "default"
labels:
app: "apachenifi"
spec:
replicas: 1
selector:
matchLabels:
app: "apachenifi"
template:
metadata:
labels:
app: "apachenifi"
spec:
securityContext:
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
containers:
- name: "apachenifi"
image: "apache/nifi:latest"
command: ["/bin/sh","-c"]
args: ["chmod -R 0755 /opt/nifi/nifi-current/conf"]
imagePullPolicy: Always
securityContext:
privileged: true
ports:
- containerPort: 8080
volumeMounts:
- mountPath: "/opt/nifi/nifi-current/conf"
name: mypdapachenifi
volumes:
- name: mypdapachenifi
persistentVolumeClaim:
claimName: nificlaimapachenifi
---
apiVersion: "autoscaling/v2beta1"
kind: "HorizontalPodAutoscaler"
metadata:
name: "apachenifi-hpa"
namespace: "default"
labels:
app: "apachenifi"
spec:
scaleTargetRef:
kind: "Deployment"
name: "apachenifi"
apiVersion: "apps/v1"
minReplicas: 1
maxReplicas: 1
metrics:
- type: "Resource"
resource:
name: "cpu"
targetAverageUtilization: 80



Please give me a suggestions,

many thanks