Support Questions
Find answers, ask questions, and share your expertise

deploy Apche Nifi in GKE

deploy Apche Nifi in GKE

Explorer

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